{"name":"postcss-color-rgb","version":"2.0.0","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":"^6.0.1","postcss-value-parser":"^3.3.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","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":"c3e91040dc744fa3f4316ba0e8d9a157b8e45de6","_id":"postcss-color-rgb@2.0.0","_shasum":"14539c8a7131494b482e0dd1cc265ff6514b5263","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"dmarchena","email":"dvmarchena@gmail.com"},"dist":{"shasum":"14539c8a7131494b482e0dd1cc265ff6514b5263","tarball":"http://registry-npm.ywwl.com/postcss-color-rgb/download/postcss-color-rgb-2.0.0.tgz","integrity":"sha512-oGgwvqUHEz4CYmbwUwQ4LwIr4Wqw9p1r+6fJFQqdZPp+ulXFsmJ1cAqJ+V7x5VoNMOuAi1e3UPyJ01JpUtX+Vw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGlUtRfI98M/Zb+3htDhPI5hYmM925LQR0OvGNB02Br9AiEAw5V+0UyjnmKVbOC+QXfhs2wffo+bwj9IKwz3OqMMwls="}],"size":3330,"noattachment":false,"key":"/postcss-color-rgb/-/postcss-color-rgb-2.0.0.tgz"},"maintainers":[{"name":"dmarchena","email":"dvmarchena@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-color-rgb-2.0.0.tgz_1495729879333_0.05939282989129424"},"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":1495729880139,"_cnpm_publish_time":1495729880139,"dist-tags":{"latest":"2.0.0"}}