{"name":"jss-theme-reactor","author":{"name":"Nathan Marks","email":"info@nathanmarks.io","url":"http://nathanmarks.io"},"version":"0.10.0","description":"Powerful theming layer for use with the JSS library (CSS in JS)","main":"./index.js","keywords":["jss","css","theme","theming","js styles","css in js","react"],"repository":{"type":"git","url":"git+https://github.com/nathanmarks/jss-theme-reactor.git"},"license":"MIT","bugs":{"url":"https://github.com/nathanmarks/jss-theme-reactor/issues"},"dependencies":{"jss":"^6.3.0","jss-preset-default":"^1.3.1","jss-vendor-prefixer":"^4.0.0","murmurhash-js":"^1.0.0"},"homepage":"https://github.com/nathanmarks/jss-theme-reactor#readme","_id":"jss-theme-reactor@0.10.0","scripts":{},"_shasum":"c0a634a01e550a2a38d5d8af052605fd8f4281e2","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"nmarks","email":"info@nathanmarks.io"},"dist":{"shasum":"c0a634a01e550a2a38d5d8af052605fd8f4281e2","tarball":"http://registry-npm.ywwl.com/jss-theme-reactor/download/jss-theme-reactor-0.10.0.tgz","integrity":"sha512-eZVH8eM3k4eAEfDp5ZraDQIe1aW9o8WuGNDP0JSq7SZveLP89XRql7635JQfHM8+4UU8AYOypNeCfRHYOEC22g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIERyBC63hxxrhIhp8Y/nmtMfQNEffLNGq4kqxjXC9sT7AiBp4zCOmq6N21hHmWca971GwWjY4UjVmpw+omznk3p9Hg=="}],"size":5834,"noattachment":false,"key":"/jss-theme-reactor/-/jss-theme-reactor-0.10.0.tgz"},"maintainers":[{"name":"nmarks","email":"info@nathanmarks.io"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/jss-theme-reactor-0.10.0.tgz_1487531691226_0.8399618677794933"},"directories":{},"readme":"# jss-theme-reactor [![Build Status](https://img.shields.io/circleci/project/nathanmarks/jss-theme-reactor/master.svg?style=flat-square)](https://circleci.com/gh/nathanmarks/jss-theme-reactor) [![codecov](https://codecov.io/gh/nathanmarks/jss-theme-reactor/branch/master/graph/badge.svg)](https://codecov.io/gh/nathanmarks/jss-theme-reactor) [![npm](https://img.shields.io/npm/v/jss-theme-reactor.svg?style=flat-square)](https://www.npmjs.com/package/jss-theme-reactor)\n\n## Installation\n\nInstall `jss-theme-reactor`.\n\n```bash\n$ npm install jss-theme-reactor --save\n```\n\n## Usage\n\n- [Basic example](#basic-example)\n- [React integration](#react-integration)\n- [Server-side rendering](#server-side-rendering)\n\n### Basic example\n\nA super simple example demonstrating the basic functionality.\n\n```javascript\nimport { create as createJss } from 'jss';\nimport preset from 'jss-preset-default';\nimport { createStyleManager, createStyleSheet } from 'jss-theme-reactor';\n\nthemeObj = {\n  fontFamily: 'Roboto',\n  fontSize: 12,\n  color: 'red',\n};\n\nstyleManager = createStyleManager({\n  jss: createJss(preset()),\n  theme: themeObj,\n});\n\nstyleSheet = createStyleSheet('button', (theme) => ({\n  root: {\n    color: theme.color,\n    fontSize: theme.fontSize,\n    fontFamily: theme.fontFamily,\n  },\n}));\n\nconst classes = styleManager.render(styleSheet);\n\n// classes.root === '.button-root-1l7rpve'\n```\n\nResulting document head:\n\n```html\n<style type=\"text/css\" data-jss=\"\" data-meta=\"button\">\n.button-root-1l7rpve {\n  color: red;\n  font-size: 12px;\n  font-family: Roboto;\n}\n</style>\n```\n","publish_time":1487531692913,"_cnpm_publish_time":1487531692913,"dist-tags":{"latest":"0.11.1"}}