{"_id":"aphrodite-jss","_rev":"3276181","name":"aphrodite-jss","description":"Aphrodite-like API on top of JSS.","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"kof","email":""},{"name":"samypesse","email":"samypesse@gmail.com"}],"time":{"modified":"2024-03-21T10:27:33.000Z","created":"2017-03-10T15:51:35.327Z","2.1.0":"2018-07-22T14:32:45.705Z","2.0.0":"2017-08-10T18:48:22.838Z","1.1.1":"2017-05-26T08:28:58.964Z","1.1.0":"2017-05-19T16:26:59.683Z","1.0.3":"2017-04-03T08:28:25.368Z","1.0.2":"2017-03-10T15:53:39.564Z","1.0.1":"2017-03-10T15:51:35.327Z"},"users":{},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/aphrodite-jss.git"},"versions":{"2.1.0":{"name":"aphrodite-jss","description":"Aphrodite-like API on top of JSS.","version":"2.1.0","scripts":{"all":"npm run lint && npm run build","clean":"rm -fr ./lib/*","build":"npm run clean && npm run build:lib && npm run build:max && npm run build:min","build:lib":"cross-env babel src --out-dir lib","build:max":"cross-env NODE_ENV=development webpack src/index.js dist/aphrodite-jss.js","build:min":"cross-env NODE_ENV=production webpack src/index.js dist/aphrodite-jss.min.js","lint":"eslint ./src ./tests ./benchmark ./*.js","lint:staged":"lint-staged","prepublish":"npm run all","test":"cross-env BABEL_ENV=test jest ./test"},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/aphrodite-jss.git"},"keywords":["jss","cssinjs","css-in-js","aphrodite","react"],"license":"MIT","main":"./lib/index.js","engines":{"node":">=4.0.0"},"devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.1","babel-eslint":"^7.1.1","babel-loader":"^7.0.0","babel-plugin-inline-version":"^1.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-preset-es2015":"^6.5.0","babel-preset-stage-0":"^6.5.0","cross-env":"^5.0.0","es5-shim":"^4.3.1","eslint":"^3.0.1","eslint-config-airbnb":"^13.0.0","eslint-config-jss":"^3.0.0","eslint-plugin-import":"2.2.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.5.0","jest":"^23.4.1","json-loader":"^0.5.4","lint-staged":"^3.4.2","pre-commit":"^1.2.0","webpack":"^2.5.1"},"dependencies":{"jss":"^8.1.0","jss-preset-default":"^3.0.0","murmurhash-js":"^1.0.0"},"lint-staged":{"./src ./tests ./benchmark ./*.js":["eslint","git add"]},"gitHead":"19f1c82e834bac9cb63b7ce10eecb0a6bc36a863","bugs":{"url":"https://github.com/cssinjs/aphrodite-jss/issues"},"homepage":"https://github.com/cssinjs/aphrodite-jss#readme","_id":"aphrodite-jss@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"62961a715130de29f064401fb8fb89b2bee830e9","size":232560,"noattachment":false,"key":"/aphrodite-jss/-/aphrodite-jss-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/aphrodite-jss/download/aphrodite-jss-2.1.0.tgz"},"maintainers":[{"name":"kof","email":""},{"name":"samypesse","email":"samypesse@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aphrodite-jss_2.1.0_1532269965573_0.9328106671474863"},"_hasShrinkwrap":false,"publish_time":1532269965705,"_cnpm_publish_time":1532269965705,"_cnpmcore_publish_time":"2021-12-16T11:26:52.430Z"},"2.0.0":{"name":"aphrodite-jss","description":"Aphrodite-like API on top of JSS.","version":"2.0.0","scripts":{"all":"npm run lint && npm run build","clean":"rm -fr ./lib/*","build":"npm run clean && npm run build:lib && npm run build:max && npm run build:min","build:lib":"cross-env babel src --out-dir lib","build:max":"cross-env NODE_ENV=development webpack src/index.js dist/aphrodite-jss.js","build:min":"cross-env NODE_ENV=production webpack src/index.js dist/aphrodite-jss.min.js","lint":"eslint ./src ./tests ./benchmark ./*.js","lint:staged":"lint-staged","prepublish":"npm run all"},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/aphrodite-jss.git"},"keywords":["jss","cssinjs","css-in-js","aphrodite","react"],"license":"MIT","main":"./lib/index.js","engines":{"node":">=4.0.0"},"devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.1","babel-eslint":"^7.1.1","babel-loader":"^7.0.0","babel-plugin-inline-version":"^1.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-preset-es2015":"^6.5.0","babel-preset-stage-0":"^6.5.0","cross-env":"^5.0.0","es5-shim":"^4.3.1","eslint":"^3.0.1","eslint-config-airbnb":"^13.0.0","eslint-config-jss":"^3.0.0","eslint-plugin-import":"2.2.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.5.0","json-loader":"^0.5.4","lint-staged":"^3.4.2","pre-commit":"^1.2.0","webpack":"^2.5.1"},"dependencies":{"jss":"^8.1.0","jss-preset-default":"^3.0.0","murmurhash-js":"^1.0.0"},"lint-staged":{"./src ./tests ./benchmark ./*.js":["eslint","git add"]},"gitHead":"a7a51d084976292db7403e60cb98f9af5216b8b4","bugs":{"url":"https://github.com/cssinjs/aphrodite-jss/issues"},"homepage":"https://github.com/cssinjs/aphrodite-jss#readme","_id":"aphrodite-jss@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"7.10.1","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"57cceea2208f2f729544bafae5b575ed1f70e2ef","size":232612,"noattachment":false,"key":"/aphrodite-jss/-/aphrodite-jss-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/aphrodite-jss/download/aphrodite-jss-2.0.0.tgz"},"maintainers":[{"name":"kof","email":""},{"name":"samypesse","email":"samypesse@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aphrodite-jss-2.0.0.tgz_1502390901522_0.6322303728666157"},"directories":{},"publish_time":1502390902838,"_hasShrinkwrap":false,"_cnpm_publish_time":1502390902838,"_cnpmcore_publish_time":"2021-12-16T11:26:53.401Z"},"1.1.1":{"name":"aphrodite-jss","description":"Aphrodite-like API on top of JSS.","version":"1.1.1","scripts":{"all":"npm run lint && npm run build","clean":"rm -fr ./lib/*","build":"npm run clean && npm run build:lib && npm run build:max && npm run build:min","build:lib":"cross-env babel src --out-dir lib","build:max":"cross-env NODE_ENV=development webpack src/index.js dist/aphrodite-jss.js","build:min":"cross-env NODE_ENV=production webpack src/index.js dist/aphrodite-jss.min.js","lint":"eslint ./src ./tests ./benchmark ./*.js","lint:staged":"lint-staged","prepublish":"npm run all"},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/aphrodite-jss.git"},"keywords":["jss","cssinjs","css-in-js","aphrodite","react"],"license":"MIT","main":"./lib/index.js","engines":{"node":">=4.0.0"},"devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.1","babel-eslint":"^7.1.1","babel-loader":"^7.0.0","babel-plugin-inline-version":"^1.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-preset-es2015":"^6.5.0","babel-preset-stage-0":"^6.5.0","cross-env":"^5.0.0","es5-shim":"^4.3.1","eslint":"^3.0.1","eslint-config-airbnb":"^13.0.0","eslint-config-jss":"^3.0.0","eslint-plugin-import":"2.2.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.5.0","json-loader":"^0.5.4","lint-staged":"^3.4.2","pre-commit":"^1.2.0","webpack":"^2.5.1"},"dependencies":{"jss":"^7.1.2","jss-preset-default":"^2.0.0","murmurhash-js":"^1.0.0"},"lint-staged":{"./src ./tests ./benchmark ./*.js":["eslint","git add"]},"gitHead":"5c41309d746f2dad43a78742b5c2744899d17295","bugs":{"url":"https://github.com/cssinjs/aphrodite-jss/issues"},"homepage":"https://github.com/cssinjs/aphrodite-jss#readme","_id":"aphrodite-jss@1.1.1","_shasum":"f69df01124f7bdaa96b7424fb9b7ef1011837fcd","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"f69df01124f7bdaa96b7424fb9b7ef1011837fcd","size":265172,"noattachment":false,"key":"/aphrodite-jss/-/aphrodite-jss-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/aphrodite-jss/download/aphrodite-jss-1.1.1.tgz"},"maintainers":[{"name":"kof","email":""},{"name":"samypesse","email":"samypesse@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aphrodite-jss-1.1.1.tgz_1495787337582_0.4965489455498755"},"directories":{},"publish_time":1495787338964,"_hasShrinkwrap":false,"_cnpm_publish_time":1495787338964,"_cnpmcore_publish_time":"2021-12-16T11:26:54.097Z"},"1.1.0":{"name":"aphrodite-jss","description":"Aphrodite-like API on top of JSS.","version":"1.1.0","scripts":{"all":"npm run lint && npm run build","clean":"rm -fr ./lib/*","build":"npm run clean && npm run build:lib && npm run build:max && npm run build:min","build:lib":"cross-env babel src --out-dir lib","build:max":"cross-env NODE_ENV=development webpack src/index.js dist/aphrodite-jss.js","build:min":"cross-env NODE_ENV=production webpack src/index.js dist/aphrodite-jss.min.js","lint":"eslint ./src ./tests ./benchmark ./*.js","lint:staged":"lint-staged","prepublish":"npm run all"},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/aphrodite-jss.git"},"keywords":["jss","cssinjs","css-in-js","aphrodite","react"],"license":"MIT","main":"./lib/index.js","engines":{"node":">=4.0.0"},"devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.1","babel-eslint":"^7.1.1","babel-loader":"^7.0.0","babel-plugin-inline-version":"^1.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-plugin-transform-es3-property-literals":"^6.22.0","babel-preset-es2015":"^6.5.0","babel-preset-stage-0":"^6.5.0","cross-env":"^5.0.0","es5-shim":"^4.3.1","eslint":"^3.0.1","eslint-config-airbnb":"^13.0.0","eslint-config-jss":"^3.0.0","eslint-plugin-import":"2.2.0","eslint-plugin-jsx-a11y":"^2.2.3","eslint-plugin-react":"^6.5.0","json-loader":"^0.5.4","lint-staged":"^3.4.2","pre-commit":"^1.2.0","webpack":"^2.5.1"},"dependencies":{"jss":"^7.1.2","jss-preset-default":"^2.0.0","murmurhash-js":"^1.0.0"},"lint-staged":{"./src ./tests ./benchmark ./*.js":["eslint","git add"]},"gitHead":"c08db7e644490589df8ae36c0ded6ab533f27d40","bugs":{"url":"https://github.com/cssinjs/aphrodite-jss/issues"},"homepage":"https://github.com/cssinjs/aphrodite-jss#readme","_id":"aphrodite-jss@1.1.0","_shasum":"885dfd1e1cee001b48a68b834b6f88766a16f246","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"885dfd1e1cee001b48a68b834b6f88766a16f246","size":265205,"noattachment":false,"key":"/aphrodite-jss/-/aphrodite-jss-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/aphrodite-jss/download/aphrodite-jss-1.1.0.tgz"},"maintainers":[{"name":"kof","email":""},{"name":"samypesse","email":"samypesse@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aphrodite-jss-1.1.0.tgz_1495211217583_0.9037195772398263"},"directories":{},"publish_time":1495211219683,"_hasShrinkwrap":false,"_cnpm_publish_time":1495211219683,"_cnpmcore_publish_time":"2021-12-16T11:26:55.031Z"},"1.0.3":{"name":"aphrodite-jss","description":"Aphrodite-like API on top of JSS.","version":"1.0.3","scripts":{"all":"npm run lint && npm run build","clean":"rm -fr ./lib/*","build":"npm run clean && npm run build:lib && npm run build:max && npm run build:min","build:lib":"cross-env babel src --out-dir lib","build:max":"cross-env NODE_ENV=development webpack src/index.js dist/aphrodite-jss.js","build:min":"cross-env NODE_ENV=production webpack src/index.js dist/aphrodite-jss.min.js","lint":"eslint ./src ./tests ./benchmark ./*.js","lint:staged":"lint-staged","prepublish":"npm run all"},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/aphrodite-jss.git"},"keywords":["jss","cssinjs","css-in-js","aphrodite","react"],"license":"MIT","main":"./lib/index.js","engines":{"node":">=4.0.0"},"devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.1","babel-eslint":"^7.1.1","babel-loader":"^6.2.2","babel-plugin-inline-version":"^1.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-preset-es2015":"^6.5.0","babel-preset-stage-0":"^6.5.0","es5-shim":"^4.3.1","eslint":"^3.0.1","eslint-config-airbnb":"^9.0.1","eslint-config-jss":"^3.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^1.0.2","eslint-plugin-react":"^5.0.1","json-loader":"^0.5.4","lint-staged":"^3.2.2","pre-commit":"^1.2.0","webpack":"^1.12.2"},"dependencies":{"jss":"^6.0.1","jss-preset-default":"^1.1.0","murmurhash-js":"^1.0.0"},"lint-staged":{"./src ./tests ./benchmark ./*.js":["eslint","git add"]},"gitHead":"d46119cb9e7519c378281f9c7ea5675baf9391ec","bugs":{"url":"https://github.com/cssinjs/aphrodite-jss/issues"},"homepage":"https://github.com/cssinjs/aphrodite-jss#readme","_id":"aphrodite-jss@1.0.3","_shasum":"91888581ffe5f148c899d6036b17b5a99469372a","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"91888581ffe5f148c899d6036b17b5a99469372a","size":223477,"noattachment":false,"key":"/aphrodite-jss/-/aphrodite-jss-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/aphrodite-jss/download/aphrodite-jss-1.0.3.tgz"},"maintainers":[{"name":"kof","email":""},{"name":"samypesse","email":"samypesse@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/aphrodite-jss-1.0.3.tgz_1491208104723_0.5546030944678932"},"directories":{},"publish_time":1491208105368,"_hasShrinkwrap":false,"_cnpm_publish_time":1491208105368,"_cnpmcore_publish_time":"2021-12-16T11:26:55.694Z"},"1.0.2":{"name":"aphrodite-jss","description":"Aphrodite-like API on top of JSS.","version":"1.0.2","scripts":{"all":"npm run lint && npm run build","clean":"rm -fr ./lib/*","build":"npm run clean && npm run build:lib && npm run build:max && npm run build:min","build:lib":"cross-env babel src --out-dir lib","build:max":"cross-env NODE_ENV=development webpack src/index.js dist/aphrodite-jss.js","build:min":"cross-env NODE_ENV=production webpack src/index.js dist/aphrodite-jss.min.js","lint":"eslint ./src ./tests ./benchmark ./*.js","lint:staged":"lint-staged","prepublish":"npm run all"},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/aphrodite-jss.git"},"keywords":["jss","cssinjs","css-in-js","aphrodite","react"],"license":"MIT","main":"./lib/index.js","engines":{"node":">=4.0.0 <7.0.0"},"devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.1","babel-eslint":"^7.1.1","babel-loader":"^6.2.2","babel-plugin-inline-version":"^1.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-preset-es2015":"^6.5.0","babel-preset-stage-0":"^6.5.0","es5-shim":"^4.3.1","eslint":"^3.0.1","eslint-config-airbnb":"^9.0.1","eslint-config-jss":"^3.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^1.0.2","eslint-plugin-react":"^5.0.1","json-loader":"^0.5.4","lint-staged":"^3.2.2","pre-commit":"^1.2.0","webpack":"^1.12.2"},"dependencies":{"jss":"^6.0.1","jss-preset-default":"^1.1.0","murmurhash-js":"^1.0.0"},"lint-staged":{"./src ./tests ./benchmark ./*.js":["eslint","git add"]},"gitHead":"ae187f590a8fa330bd6b11a4da0a19e83b2ae552","bugs":{"url":"https://github.com/cssinjs/aphrodite-jss/issues"},"homepage":"https://github.com/cssinjs/aphrodite-jss#readme","_id":"aphrodite-jss@1.0.2","_shasum":"5517f16a4685c4fcfc52073a47e89c300e24f600","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"5517f16a4685c4fcfc52073a47e89c300e24f600","size":223440,"noattachment":false,"key":"/aphrodite-jss/-/aphrodite-jss-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/aphrodite-jss/download/aphrodite-jss-1.0.2.tgz"},"maintainers":[{"name":"kof","email":""},{"name":"samypesse","email":"samypesse@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/aphrodite-jss-1.0.2.tgz_1489161217478_0.19568236777558923"},"directories":{},"publish_time":1489161219564,"_hasShrinkwrap":false,"_cnpm_publish_time":1489161219564,"_cnpmcore_publish_time":"2021-12-16T11:26:56.387Z"},"1.0.1":{"name":"aphrodite-jss","description":"Aphrodite-like API on top of JSS.","version":"1.0.1","scripts":{"all":"npm run lint && npm run build","clean":"rm -fr ./lib/*","build":"npm run clean && npm run build:lib && npm run build:max && npm run build:min","build:lib":"cross-env babel src --out-dir lib","build:max":"cross-env NODE_ENV=development webpack src/index.js dist/aphrodite-jss.js","build:min":"cross-env NODE_ENV=production webpack src/index.js dist/aphrodite-jss.min.js","lint":"eslint ./src ./tests ./benchmark ./*.js","lint:staged":"lint-staged","prepublish":"npm run all"},"author":{"name":"Oleg Slobodskoi","email":"oleg008@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/cssinjs/aphrodite-jss.git"},"keywords":["jss","cssinjs","css-in-js","aphrodite","react"],"license":"MIT","main":"./lib/index.js","engines":{"node":">=4.0.0 <7.0.0"},"devDependencies":{"babel-cli":"^6.5.1","babel-core":"^6.5.1","babel-eslint":"^7.1.1","babel-loader":"^6.2.2","babel-plugin-inline-version":"^1.0.2","babel-plugin-transform-es3-member-expression-literals":"^6.8.0","babel-preset-es2015":"^6.5.0","babel-preset-stage-0":"^6.5.0","es5-shim":"^4.3.1","eslint":"^3.0.1","eslint-config-airbnb":"^9.0.1","eslint-config-jss":"^3.0.0","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^1.0.2","eslint-plugin-react":"^5.0.1","json-loader":"^0.5.4","lint-staged":"^3.2.2","pre-commit":"^1.2.0","webpack":"^1.12.2"},"dependencies":{"jss":"^6.0.1","jss-preset-default":"^1.1.0","murmurhash-js":"^1.0.0"},"lint-staged":{"./src ./tests ./benchmark ./*.js":["eslint","git add"]},"gitHead":"9704791ca5e04c363599c7b1b784641b1b058161","bugs":{"url":"https://github.com/cssinjs/aphrodite-jss/issues"},"homepage":"https://github.com/cssinjs/aphrodite-jss#readme","_id":"aphrodite-jss@1.0.1","_shasum":"b069198d07ade43013bf8355c207a5d59c514c49","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"kof","email":"oleg008@gmail.com"},"dist":{"shasum":"b069198d07ade43013bf8355c207a5d59c514c49","size":223435,"noattachment":false,"key":"/aphrodite-jss/-/aphrodite-jss-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/aphrodite-jss/download/aphrodite-jss-1.0.1.tgz"},"maintainers":[{"name":"kof","email":""},{"name":"samypesse","email":"samypesse@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/aphrodite-jss-1.0.1.tgz_1489161094756_0.8489749459549785"},"directories":{},"publish_time":1489161095327,"_hasShrinkwrap":false,"_cnpm_publish_time":1489161095327,"_cnpmcore_publish_time":"2021-12-16T11:26:57.479Z"}},"readme":"# Aphrodite-like API on top of JSS.\n\nThis project is a merge of good ideas from [aphrodite](https://github.com/Khan/aphrodite) and [JSS](https://github.com/cssinjs/jss). It provides an API of aphrodite but fixes lots of limitations and caveats by using JSS as a rendering engine under the hood.\n\n## Good parts from aphrodite.\n\n- Pretty much like inline styles known from React, except it allows to use the entire CSS.\n- No CSS is generated until `css()` function invocation. Only the passed rules are converted to a CSS string and injected.\n- Theming is possible without any headache or framework integrations.\n\n## Benefits compared to aphrodite.\n\n- More powerfull rendering abstraction through [JSS](https://github.com/cssinjs/jss) under the hood. You are using all it's plugins and [JSON DSL](https://github.com/cssinjs/jss/blob/master/docs/json-api.md). To name a few:\n  - Children, siblings and any other kinds of selectors. ([jss-nested](https://github.com/cssinjs/jss-nested))\n  - Global styles, without auto namespacing ([jss-global](https://github.com/cssinjs/jss-global)).\n- Immediate render upon `css()` call invocation. It gives you an access to computed styles right after render, no need to use `setTimeout()`. It also avoids additional recalcs and repaints, which can cause flickers and general performance overhead.\n- No auto \"!important\" insertion. You can write a plugin for this though.\n\n\n## Example\n\n```javascript\nimport {StyleSheet, css} from 'aphrodite-jss'\n\nconst sheet = StyleSheet.create({\n  button: {\n    border: '1px solid',\n    borderRadius: 5,\n    fontSize: 'inherit',\n    lineHeight: '2.3em',\n    padding: '0 1em',\n    boxShadow: 'inset 0 1px 0 rgba(255, 255, 255, 0.1)',\n    textShadow: '0 -1px 0 rgba(0, 0, 0, 0.25)',\n    backgroundRepeat: 'repeat-x',\n    color: '#fff',\n    fontWeight: 400,\n    '& span': {\n      marginRight: 5,\n      color: '#fff'\n    }\n  },\n  primary: {\n    borderColor: '#1177cd #0f6ab6 #0d5c9e',\n    backgroundImage: 'linear-gradient(to bottom, #2591ed 0%, #1177cd 100%)',\n    backgroundColor: '#1385e5',\n    '&:hover': {\n      backgroundImage: 'linear-gradient(to bottom, #3c9def 0%, #1385e5 100%)'\n    }\n  }\n})\n\ndocument.body.innerHTML = `\n  <button class=\"${css(sheet.button, sheet.primary)}\">\n    <span>&#10004;</span>Primary\n  </button>\n`\n```\n\n## API\n\n### Create style sheet.\n\n`StyleSheet.create(styles)`\n\nCreate function doesn't render anything, it just registers your styles.\n\nReturns an object, where key names correspond the original styles obejct.\n\n### Inject rules.\n\n`css(rule1, [rule2], [rule3], ...)`\n\nInjects a previously defined rule to the dom. This is done in sync, so the CSS rule is immediately available.\n\nReturns a class name.\n\n### Styles format.\n\nThe format for styles is defined in [jss](https://github.com/cssinjs/jss/blob/master/docs/json-api.md). Aprodisiac uses [jss-preset-default](https://github.com/cssinjs/jss-preset-default), so all default presets are already in place.\n\n### Customizing JSS.\n\n`aphroditeJss(jss, [options])`\n\nYou can pass your own JSS instance with your custom setup.\n\nReturns aphrodite's interface.\n\n```javascript\nimport aphroditeJss from 'aphrodite-jss'\nimport {create} from 'jss'\n\nconst {css, StyleSheet} = aphroditeJss(create())\n```\n\n### Serverside Rendering.\n\nThere are 2 functions you need to know - `toString()` and `reset()`.\nAs aphrodite-jss can not know that you are rendering a new response, you need to get the CSS (`toString()`) when you are processing the first request and call `reset()` to clean up the styles your current page has produced.\n\n\n```javascript\nimport {toString, reset} from 'aphrodite-jss'\n\nfunction render() {\n  const app = renderApp()\n  const css = toString()\n  reset()\n\n  return `\n    <head>\n      <style>\n        ${css}\n      </style>\n    <head>\n    <body>\n      ${app}\n    </body>\n  `\n}\n```\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/cssinjs/aphrodite-jss#readme","bugs":{"url":"https://github.com/cssinjs/aphrodite-jss/issues"},"license":"MIT"}