motion
Version:
motion - moving development forward
73 lines (72 loc) • 3.58 kB
JSON
{
"_args": [
[
"postcss-modules-values@https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.1.1.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "postcss-modules-values@>=1.1.0 <2.0.0",
"_id": "postcss-modules-values@1.1.1",
"_inCache": true,
"_location": "/postcss-modules-values",
"_phantomChildren": {},
"_requested": {
"name": "postcss-modules-values",
"raw": "postcss-modules-values@https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.1.1.tgz",
"rawSpec": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.1.1.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.1.1.tgz",
"type": "remote"
},
"_requiredBy": [
"/css-loader"
],
"_resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.1.1.tgz",
"_shasum": "5231d283318e2054f65d600430d2c74129b5969b",
"_shrinkwrap": null,
"_spec": "postcss-modules-values@https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.1.1.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"name": "Glen Maddern"
},
"bugs": {
"url": "https://github.com/css-modules/postcss-modules-constants/issues"
},
"dependencies": {
"icss-replace-symbols": "^1.0.2",
"postcss": "^5.0.10"
},
"description": "PostCSS plugin for CSS Modules to pass arbitrary constants between your module files",
"devDependencies": {
"babel": "^5.8.23",
"chokidar": "^1.2.0",
"mocha": "^2.3.3",
"standard": "^5.3.1"
},
"homepage": "https://github.com/css-modules/postcss-modules-constants#readme",
"keywords": [
"css",
"modules",
"postcss"
],
"license": "ISC",
"main": "lib/index.js",
"name": "postcss-modules-values",
"optionalDependencies": {},
"readme": "# CSS Modules: Values\n\nPass arbitrary values between your module files\n\n### Usage\n\n```css\n/* colors.css */\n@value primary: #BF4040;\n@value secondary: #1F4F7F;\n\n.text-primary {\n color: primary;\n}\n\n.text-secondary {\n color: secondary;\n}\n```\n\n```css\n/* breakpoints.css */\n@value small: (max-width: 599px);\n@value medium: (min-width: 600px) and (max-width: 959px);\n@value large: (min-width: 960px);\n```\n\n```css\n/* my-component.css */\n@value colors: \"./colors.css\";\n@value primary, secondary from colors;\n@value small as bp-small, large as bp-large from \"./breakpoints.css\";\n\n.header {\n composes: text-primary from colors;\n box-shadow: 0 0 10px secondary;\n}\n\n@media bp-small {\n .header {\n box-shadow: 0 0 4px secondary;\n }\n}\n@media bp-large {\n .header {\n box-shadow: 0 0 20px secondary;\n }\n}\n```\n\nNote that the `:` in a `@value` definition is optional as to not break Sass.\n\n### Justification\n\nSee [this PR](https://github.com/css-modules/css-modules-loader-core/pull/28) for more background\n\n## License\n\nISC\n\n## With thanks\n\n- Mark Dalgleish\n- Tobias Koppers\n- Josh Johnston\n\n---\nGlen Maddern, 2015.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/css-modules/postcss-modules-constants.git"
},
"scripts": {
"autotest": "chokidar src test -c 'npm test'",
"build": "babel --out-dir lib src",
"lint": "standard src test",
"posttest": "npm run lint && npm run build",
"prepublish": "npm run build",
"test": "mocha --compilers js:babel/register",
"travis": "npm run test"
},
"version": "1.1.1"
}