{"name":"glamor","version":"2.20.26","description":"inline css for component systems","main":"lib/index.js","typings":"index.d.ts","files":["es6","lib","umd","aphrodite.js","jsxstyle.js","babel.js","babel-hoist.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":"cross-env 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":"cross-env 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.21.0","babel-eslint":"^7.1.1","babel-loader":"^6.2.10","babel-plugin-istanbul":"^3.0.0","babel-plugin-react-require":"^3.0.0","babel-plugin-transform-decorators-legacy":"^1.3.4","babel-plugin-transform-runtime":"^6.15.0","babel-preset-es2015":"^6.18.0","babel-preset-react":"^6.16.0","babel-preset-stage-0":"^6.16.0","classnames":"^2.2.5","cross-env":"^3.1.4","cssbeautify":"^0.3.1","eslint":"^3.12.2","eslint-config-rackt":"^1.1.1","eslint-plugin-react":"^6.8.0","expect":"^1.20.2","expect-jsx":"^2.6.0","fbjs":"^0.8.8","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.1","markdown-in-js":"^1.1.3","minimist":"^1.2.0","mkdirp":"^0.5.1","mocha":"^3.2.0","npm-run-all":"^3.1.2","object-assign":"^4.1.0","pegjs":"^0.10.0","preact":"^7.1.0","preact-compat":"^3.9.4","pug":"^2.0.0-beta6","react":"^15.5.4","react-addons-css-transition-group":"^15.5.2","react-dom":"^15.5.4","rimraf":"^2.5.4","stylelint":"^7.7.0","stylelint-config-standard":"^15.0.1","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":{"babel-runtime":"^6.18.0","fbjs":"^0.8.8","object-assign":"^4.1.0","prop-types":"^15.5.8"},"gitHead":"5dbeda45daf4eaabe53d31dfaf4e21ab24663f9d","bugs":{"url":"https://github.com/threepointone/glamor/issues"},"_id":"glamor@2.20.26","_npmVersion":"5.0.3","_nodeVersion":"8.1.3","_npmUser":{"name":"threepointone","email":"threepointone@gmail.com"},"dist":{"integrity":"sha512-lkAklH4tnFOOZyJV/XTL4UG3KYyFBeRUgJbu8xsKc+DF0oqUHdFLCUOR40KFPu571aJCtUf4YCwKoXgvPhpLMw==","shasum":"203f16457850f3851d0a92eb7e04dcd2c29c2fba","tarball":"http://registry-npm.ywwl.com/glamor/download/glamor-2.20.26.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUp5Rx1TSzjtCb97EMxyLYOwgV5RWYBaNZeiHp2am9sQIgV7BqlRossh8hdLAHjTA+tiC9l8kdyOMPCY7tslrR92I="}],"size":267182,"noattachment":false,"key":"/glamor/-/glamor-2.20.26.tgz"},"maintainers":[{"name":"donaldpipowitch","email":"pipo@senaeh.de"},{"name":"otbe","email":"benjamin.otto@style-systems.de"},{"name":"threepointone","email":"threepointone@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glamor-2.20.26.tgz_1500482342598_0.3058808441273868"},"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":1500482344150,"_cnpm_publish_time":1500482344150,"dist-tags":{"latest":"2.20.40"}}