{"name":"jss-theme-reactor","author":{"name":"Nathan Marks","email":"info@nathanmarks.io","url":"http://nathanmarks.io"},"version":"0.1.0-alpha.4","main":"./index.js","keywords":["jss","react","css","theme","js styles"],"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"},"peerDependencies":{"jss":"^5.4.0"},"dependencies":{"inline-style-prefixer":"^2.0.1","warning":"^3.0.0"},"description":"[![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) [![Coverage Status](https://img.shields.io/coveralls/nathanmarks/jss-theme-reactor","homepage":"https://github.com/nathanmarks/jss-theme-reactor#readme","_id":"jss-theme-reactor@0.1.0-alpha.4","scripts":{},"_shasum":"71f4280b6be69b3df2f3d00a26576b778ff2bddd","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"nmarks","email":"info@nathanmarks.io"},"dist":{"shasum":"71f4280b6be69b3df2f3d00a26576b778ff2bddd","tarball":"http://registry-npm.ywwl.com/jss-theme-reactor/download/jss-theme-reactor-0.1.0-alpha.4.tgz","integrity":"sha512-BZYNnvceCioepgnze7BBIk2b3ZbZLMJZU9Qs+ptj/NbXeFZ6J7Ns2yuUbj4FBGRh85N707tvs5Cje0VNih1xcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDU/G2dPEN9zM2J2828uPXAmCR0YuzLWBygzpcxO6uikQIhAPLobEXvowpJ0kTT6TvKJ5V465B+pjtJh3nfyDHDQ3Ps"}],"size":4485,"noattachment":false,"key":"/jss-theme-reactor/-/jss-theme-reactor-0.1.0-alpha.4.tgz"},"maintainers":[{"name":"nmarks","email":"info@nathanmarks.io"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/jss-theme-reactor-0.1.0-alpha.4.tgz_1471742516050_0.308740206528455"},"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":1471742517383,"_cnpm_publish_time":1471742517383,"dist-tags":{"latest":"0.11.1"}}