{"name":"glamor","version":"2.12.1","description":"inline css for component systems","main":"lib/index.js","files":["lib","umd","aphrodite.js","jsxstyle.js","react.js","ous.js","reset.js","utils.js","server.js"],"scripts":{"build":"npm run clean && npm run build:cssops && npm run build:lib && npm run build:es6 && mkdir umd && npm run build:umd","build:cssops":"echo 'module.exports = require(\"react/lib/CSSPropertyOperations\");' | browserify - -p browserify-derequire -s CSSOps -o src/CSSPropertyOperations.js -t [ babelify --presets [ es2015 stage-0 react ] --plugins [ transform-decorators-legacy ] ] -t envify","build:lib":"NODE_ENV=production babel src -d lib --loose all --presets es2015,stage-0,react --plugins transform-decorators-legacy","build:es6":"echo 'es6 build not implemented'","build:umd":"NODE_ENV=production browserify src/index.js -s Glamor -o umd/index.js -t [ babelify --presets [ es2015 stage-0 react ] --plugins [ transform-decorators-legacy ] ] -t envify -t aliasify && npm run compress:umd","compress:umd":"NODE_ENV=production uglifyjs umd/index.js -mc -o umd/index.min.js","clean":"rm -rf lib && rm -rf es6 && rm -rf umd && rm -f src/CSSPropertyOperations.js","test":"NODE_ENV=test node ./node_modules/.bin/karma start tests/karma.conf.js --single-run","test:server":"NODE_ENV=test ./node_modules/.bin/babel-node tests/server.js --presets es2015,stage-0,react --plugins transform-decorators-legacy","test:watch":"NODE_ENV=test node ./node_modules/.bin/karma start tests/karma.conf.js","prepublish":"npm run build","size":"cat umd/index.min.js | gzip | wc -c","start":"node server.js"},"devDependencies":{"aliasify":"^2.0.0","babel-cli":"^6.11.4","babel-eslint":"^6.1.2","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-polyfill":"^6.9.1","babel-preset-es2015":"^6.9.0","babel-preset-react":"^6.11.1","babel-preset-stage-0":"^6.5.0","babelify":"^7.3.0","browserify":"^13.0.1","browserify-derequire":"^0.9.4","envify":"^3.4.1","eslint":"^3.3.1","eslint-config-rackt":"^1.1.1","eslint-plugin-react":"^5.2.2","expect":"^1.20.2","expect-jsx":"^2.6.0","jade":"^1.11.0","karma":"^1.1.1","karma-browserify":"^5.1.0","karma-chrome-launcher":"^1.0.1","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.0.0","karma-mocha":"^1.1.1","karma-mocha-reporter":"^2.0.4","karma-phantomjs-launcher":"^1.0.1","karma-safari-launcher":"^1.0.0","mocha":"^2.5.3","react":"^15.2.1","react-dom":"^15.2.1","uglify-js":"^2.7.0","watchify":"^3.7.0"},"peerDependencies":{"react":"*"},"author":{"name":"Sunil Pai","email":"threepointone@gmail.com"},"homepage":"","license":"MIT","repository":"","keywords":["css","inline"],"aliasify":{"aliases":{"react/lib/CSSPropertyOperations":"./src/CSSPropertyOperations.js"}},"eslintConfig":{"extends":["rackt"]},"gitHead":"b5046032f23c64e6a41811a7a342e16b8d28b1d8","_id":"glamor@2.12.1","_shasum":"c7e52852b424cdb9622347d22f15dd7b727d7cbb","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"threepointone","email":"threepointone@gmail.com"},"dist":{"shasum":"c7e52852b424cdb9622347d22f15dd7b727d7cbb","tarball":"http://registry-npm.ywwl.com/glamor/download/glamor-2.12.1.tgz","integrity":"sha512-afbDiNNqLJQCSpY0dcCRUU4FYVr7iYN0JVfzYDXLM/dmwPGgc3K+F7nHYMMrBQKeSRJqJtVCPZ5CbeQnz+N/4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGv8I6D7ro7/SAIEmX4y0A2ctC2FS7DF6UNm+wmNnwnhAiEAyFN1l4Wc7eSroNCD3fktRC5u6UCgvnRIVrmYZFfLQlY="}],"size":81690,"noattachment":false,"key":"/glamor/-/glamor-2.12.1.tgz"},"maintainers":[{"name":"threepointone","email":"threepointone@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/glamor-2.12.1.tgz_1472150683476_0.22742342995479703"},"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":1472150683717,"_cnpm_publish_time":1472150683717,"dist-tags":{"latest":"2.20.40"}}