{"name":"glamor","version":"2.20.9","description":"inline css for component systems","main":"lib/index.js","typings":"index.d.ts","files":["es6","lib","umd","aphrodite.js","jsxstyle.js","babel.js","styled.js","ous.js","react.js","reset.js","server.js","utils.js","index.d.ts","aphrodite.d.ts","jsxstyle.d.ts","react.d.ts","ous.d.ts","utils.d.ts"],"scripts":{"start":"webpack-dev-server --config webpack/dev.js","parser":"pegjs src/css/spec.pegjs","clean":"rimraf lib es6 umd","build":"npm-run-all -s clean -s parser -p build:** -s size","build:lib":"babel src -d lib --presets es2015,stage-0,react","build:es6":"babel src -d es6","build:umd":"mkdirp umd && webpack --config webpack/umd.js","build:umd-prod":"NODE_ENV=production npm run build:umd","build:umd-react":"echo 'react build not implemented'","size":"cat umd/index.min.js | gzip | wc -c","test":"karma start tests/karma.conf.js","test:server":"NODE_ENV=test babel-node tests/server.js --presets es2015,stage-0,react","test:watch":"npm test -- --no-single-run","coverage":"rm -rf tests/coverage && COVERAGE=1 npm test && open tests/coverage/*/index.html","prepublish":"npm run build"},"devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.18.2","babel-eslint":"^7.1.1","babel-loader":"^6.2.8","babel-plugin-istanbul":"^3.0.0","babel-plugin-react-require":"^3.0.0","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-polyfill":"^6.16.0","babel-preset-es2015":"^6.18.0","babel-preset-react":"^6.16.0","babel-preset-stage-0":"^6.16.0","classnames":"^2.2.5","cssbeautify":"^0.3.1","eslint":"^3.11.1","eslint-config-rackt":"^1.1.1","eslint-plugin-react":"^6.7.1","expect":"^1.20.2","expect-jsx":"^2.6.0","fbjs":"^0.8.6","karma":"^1.3.0","karma-browserstack-launcher":"^1.1.1","karma-chrome-launcher":"^2.0.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.0.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.1","karma-phantomjs-launcher":"^1.0.2","karma-safari-launcher":"^1.0.0","karma-webpack":"^1.8.0","markdown-in-js":"^1.1.3","minimist":"^1.2.0","mkdirp":"^0.5.1","mocha":"^3.2.0","npm-run-all":"^3.1.1","pegjs":"^0.10.0","preact":"^6.4.0","preact-compat":"^3.9.2","pug":"^2.0.0-beta6","react":"^15.4.1","react-addons-css-transition-group":"^15.4.1","react-dom":"^15.4.1","rimraf":"^2.5.4","stylelint":"^7.6.0","stylelint-config-standard":"^15.0.0","stylelint-processor-styled-components":"^0.0.4","webpack":"2.1.0-beta.25","webpack-dev-server":"2.1.0-beta.9"},"author":{"name":"Sunil Pai","email":"threepointone@gmail.com"},"homepage":"https://github.com/threepointone/glamor","license":"MIT","repository":{"type":"git","url":"git+https://github.com/threepointone/glamor.git"},"keywords":["css","inline"],"eslintConfig":{"extends":["rackt"],"plugins":["react"],"rules":{"react/jsx-uses-vars":"error","react/jsx-uses-react":"error","jsx-quotes":0}},"dependencies":{"fbjs":"^0.8.6"},"gitHead":"af7d80d32dfa6a39f348a775ff580441110a407d","bugs":{"url":"https://github.com/threepointone/glamor/issues"},"_id":"glamor@2.20.9","_shasum":"cf5deeff32a10b1cd86b362207ed7abb8d827043","_from":".","_npmVersion":"4.0.1","_nodeVersion":"6.8.1","_npmUser":{"name":"threepointone","email":"threepointone@gmail.com"},"dist":{"shasum":"cf5deeff32a10b1cd86b362207ed7abb8d827043","tarball":"http://registry-npm.ywwl.com/glamor/download/glamor-2.20.9.tgz","integrity":"sha512-fiWKz1cphWR5dAAagZU3//k+TSAVYZDiwnboz7oDXQCza3F7fbJRi+22oGZQ6r+/GSq7PaDkKfg9tGKt2dzJxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDY2rIahpci8HDY6rU/CoIWo5Ys8cl4PR4+xNOgVtAsPwIhAOp06TNDhZNxOiPCr/Qr5VPFEdT0GouSmofc1Bu0fShS"}],"size":217534,"noattachment":false,"key":"/glamor/-/glamor-2.20.9.tgz"},"maintainers":[{"name":"threepointone","email":"threepointone@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/glamor-2.20.9.tgz_1480672978989_0.5310583033133298"},"directories":{},"readme":"# glamor\n\n[![Join the chat at https://gitter.im/glamor-css/Lobby](https://badges.gitter.im/glamor-css/Lobby.svg)](https://gitter.im/glamor-css/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n![build status](https://travis-ci.org/threepointone/glamor.svg)\n\ncss in your javascript\n\n`npm install glamor --save`\n\nusage\n```jsx\nimport { css } from 'glamor'\n\n// make css rules\nlet rule = css({\n  color: 'red',\n  ':hover': {\n    color: 'pink'\n  },\n  '@media(min-width: 300px)': {\n    color: 'green',\n    ':hover': {\n      color: 'yellow'\n    }\n  }\n})\n\n// add as data attributes\n<div {...rule} {...another}>\n  zomg\n</div>\n\n// or as classes\n<div className={`${rule} ${another}`}>\n  zomg\n</div>\n\n// merge rules for great justice\nlet mono = css({\n  fontFamily: 'monospace'\n})\n\nlet bolder = css({\n  fontWeight: 'bolder'\n})\n\n<div {...css(mono, bolder)}>\n  bold code!\n</div>\n\n```\n\nmotivation\n---\n\nThis expands on ideas from @vjeux's [2014 css-in-js talk](https://speakerdeck.com/vjeux/react-css-in-js).\nWe introduce an api to annotate arbitrary dom nodes with style definitions (\"rules\") for, um, the greater good.\n\nfeatures\n---\n\n- fast / efficient, with a fluent api\n- framework independent\n- adds vendor prefixes / fallback values\n- supports all the pseudo :classes/::elements\n- `@media` queries\n- `@supports` statements\n- `@font-face` / `@keyframes`\n- escape hatches for parent / child / contextual selectors\n- dev helper to simulate pseudo classes like `:hover`, etc\n- server side / static rendering\n- tests / coverage\n- experimental - [write real css](https://github.com/threepointone/glamor/blob/master/docs/css.md), with syntax highlighting and linting\n\n\n(thanks to [BrowserStack](https://www.browserstack.com/) for providing the infrastructure that allows us to run our build in real browsers.)\n\ndocs\n---\n- [api documentation](https://github.com/threepointone/glamor/blob/master/docs/api.md)\n- [howto](https://github.com/threepointone/glamor/blob/master/docs/howto.md) - a comparison of css techniques in glamor\n- [plugins](https://github.com/threepointone/glamor/blob/master/docs/plugins.md)\n- [server side rendering](https://github.com/threepointone/glamor/blob/master/docs/server.md)\n- [performance tips](https://github.com/threepointone/glamor/blob/master/docs/performance.md)\n- [what happens when I call css(...rules)?](https://github.com/threepointone/glamor/blob/master/docs/implementation.md)\n\nextras\n---\n\n- `glamor/reset` - include a css reset\n- [use a `css` prop on *all* your react elements](https://github.com/threepointone/glamor/blob/master/docs/createElement.md)\n- `glamor/react` - helpers for [themes](https://github.com/threepointone/glamor/blob/master/docs/themes.md), [`@vars`](https://github.com/threepointone/glamor/blob/master/docs/vars.md)\n- `glamor/jsxstyle` - [react integration](https://github.com/threepointone/glamor/blob/master/docs/jsxstyle.md), à la [jsxstyle](https://github.com/petehunt/jsxstyle/)\n- `glamor/aphrodite` - [shim](https://github.com/threepointone/glamor/blob/master/docs/aphrodite.md) for [aphrodite](https://github.com/Khan/aphrodite) stylesheets\n- `glamor/utils` - a port of [postcss-utilities](https://github.com/ismamz/postcss-utilities)\n- `glamor/ous` - a port of [the skeleton css framework](http://getskeleton.com)\n- [`glamor/styled`](https://github.com/threepointone/glamor/blob/master/docs/styled.md) - an experimental port of [styled-components](https://styled-components.com/)\n\n\nspeedy mode\n---\n\nthere are two methods by which the library adds styles to the document -\n- by appending css 'rules' to a browser backed stylesheet. This is really fast, but has the disadvantage of making the styles uneditable in the devtools sidebar.\n- by appending text nodes to a style tag. This is fairly slow, but doesn't have the editing drawback.\n\nas a compromise, we enable the former 'speedy' mode `NODE_ENV=production`, and disable it otherwise. You can manually toggle this with the `speedy()` function.\n\ncharacteristics\n---\n\nwhile glamor shares most common attributes of other inline style / css-in-js systems,\nhere are some key differences -\n\n- uses 'real' stylesheets, so you can use all css features.\n- rules can be used as data-attributes or classNames.\n- simulate pseudo-classes with the `simulate` helper. very useful, especially when combined when hot-loading and/or editing directly in devtools.\n- really fast, by way of deduping rules, and using [insertRule](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule) in production.\n\n\ntodo\n---\n\n- redo all the docs\n- [planned enhancements](https://github.com/threepointone/glamor/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement)\n- notes on composition\n\nprofit, profit\n---\n\nI get it\n","publish_time":1480672981432,"_cnpm_publish_time":1480672981432,"dist-tags":{"latest":"2.20.40"}}