Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

theming

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

theming

Theming High-Order Components toolkit

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
291K
increased by9.33%
Maintainers
1
Weekly downloads
 
Created
Source

theming

NPM version Build Coveralls Status Dependency Status

Theming High-Order Components toolkit

Install

npm install --save theming
# or
yarn add theming

Usage

In your components

import React from 'react';
import { withTheme } from 'theming';

const prettyPrint = value => JSON.stringify(value, null, 2);

const DemoBox = props => <pre>{ prettyPrint(props.theme) }</pre>

export default withTheme(DemoBox);

In your app

import React from 'react';
import { ThemeProvider } from 'theming';
import DemoBox from './components/DemoBox'

const theme = {
  color: 'black',
  background: 'white',
};

const App = () => (
  <ThemeProvider theme={theme}>
    <DemoBox />
  </ThemeProvider>
)

export default App;

License

MIT © Vladimir Starkov

Keywords

FAQs

Package last updated on 17 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc