{"name":"postcss-color-rgb","version":"1.1.2","description":"PostCSS plugin to transform W3C CSS Color Module Level 4 rgb() new syntax to more compatible CSS (comma-separated rgb() or rgba())","keywords":["postcss","css","postcss-plugin","color","rgb","rgba"],"author":{"name":"David Marchena"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/dmarchena/postcss-color-rgb.git"},"bugs":{"url":"https://github.com/dmarchena/postcss-color-rgb/issues"},"homepage":"https://github.com/dmarchena/postcss-color-rgb","main":"dist/index.js","files":["dist","!**/__tests__"],"dependencies":{"postcss":"^5.2.0"},"devDependencies":{"ava":"^0.16.0","babel-cli":"^6.14.0","babel-plugin-add-module-exports":"^0.2.1","babel-preset-es2015":"^6.14.0","babel-register":"^6.14.0","coveralls":"^2.11.13","eslint":"^3.4.0","eslint-config-postcss":"^2.0.2","npm-run-all":"^3.1.0","nyc":"^8.3.0","postcss-value-parser":"^3.3.0","rimraf":"^2.5.4"},"scripts":{"clean":"rimraf dist","coveralls":"nyc report --reporter=text-lcov | coveralls","lint":"eslint src/**/*.js","pretest":"npm run lint","test:ava":"ava","test":"nyc npm run test:ava","prebuild":"npm-run-all clean lint","build":"babel src --out-dir dist","prepublish":"npm run build"},"babel":{"presets":["es2015"],"plugins":["add-module-exports"]},"ava":{"files":["src/__tests__/*.js","!**/postcss-test.js"],"require":["babel-register"],"babel":"inherit"},"eslintConfig":{"extends":"eslint-config-postcss/es5"},"gitHead":"6c5251f071723890c7da8cc5ef2924b738c2fe83","_id":"postcss-color-rgb@1.1.2","_shasum":"2d7fa21f1a30f7fcc95a4f12deac6b93d42541c7","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.6.0","_npmUser":{"name":"dmarchena","email":"dvmarchena@gmail.com"},"dist":{"shasum":"2d7fa21f1a30f7fcc95a4f12deac6b93d42541c7","tarball":"http://registry-npm.ywwl.com/postcss-color-rgb/download/postcss-color-rgb-1.1.2.tgz","integrity":"sha512-CGKJ59XZ3hZxwXlxCF7iVhCb7kkVfMCC/xyRxKEjWYcPs9YAouvXiUg+ZZh/aeOk9006+4VCBFm8jfJGDzuJxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCejum4Fs0YxebfGaKQi3K2al4q9VHutGj8bWFsPR/fkQIgU7NHldmSdDW0sErb0UMeI0PtevETB71N5VFP9mM2VZ0="}],"size":3265,"noattachment":false,"key":"/postcss-color-rgb/-/postcss-color-rgb-1.1.2.tgz"},"maintainers":[{"name":"dmarchena","email":"dvmarchena@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-color-rgb-1.1.2.tgz_1479141220186_0.6904799570329487"},"directories":{},"readme":"# PostCSS Color Rgb [![Build Status][ci-img]][ci] [![Coverage Status][cov-img]][cov]\n\n[PostCSS] plugin to transform [W3C CSS Color Module Level 4 rgb()](https://drafts.csswg.org/css-color/#funcdef-rgb) new syntax to more compatible CSS (comma-separated rgb() or rgba()).\n\n[PostCSS]: https://github.com/postcss/postcss\n[ci-img]:  https://travis-ci.org/dmarchena/postcss-color-rgb.svg\n[ci]:      https://travis-ci.org/dmarchena/postcss-color-rgb\n[cov-img]: https://coveralls.io/repos/github/dmarchena/postcss-color-rgb/badge.svg\n[cov]:     https://coveralls.io/github/dmarchena/postcss-color-rgb\n\n## CSS Colors 4 syntax\n\n```\nrgb() = rgb( <percentage>{3} [ / <alpha-value> ]? ) |\n        rgb( <number>{3} [ / <alpha-value> ]? )\n\n<alpha-value> = <number> | <percentage>\n```\n\n## CSS Colors 3 syntax (actual)\n\n```\nrgb() = rgb( <percentage>#{3}) |\n        rgb( <integer>#{3})\n\nrgba() = rgba( <percentage>#{3} , <alpha-value> ) |\n         rgba( <integer>#{3} , <alpha-value> )\n\n<alpha-value> = <number>\n```\n\n## Example\n\n```css\n.foo {\n  /* Input example */\n  color: rgb(250.5 255 255);\n  background-image: linear-gradient(to bottom right, rgb(10% 11% 12% / 90%), rgb(23% 24% 25% / .5));\n}\n```\n\n```css\n.foo {\n  /* Output example */\n  color: rgb(251, 255, 255);\n  background-image: linear-gradient(to bottom right, rgba(10%, 11%, 12%, .9), rgba(23%, 24%, 25%, .5));\n}\n```\n\n## Usage\n\n```js\npostcss([ require('postcss-color-rgb') ])\n```\n\nSee [PostCSS] docs for examples for your environment.\n","publish_time":1479141222155,"_cnpm_publish_time":1479141222155,"dist-tags":{"latest":"2.0.0"}}