{"name":"postcss-color-rgba-fallback","version":"3.0.0","description":"PostCSS plugin to transform rgba() to hexadecimal","keywords":["css","postcss","postcss-plugin","rgba","hexadecimal"],"author":{"name":"Guillaume Démésy"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-color-rgba-fallback.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{"postcss":"^6.0.6","postcss-value-parser":"^3.3.0","rgb-hex":"^2.1.0"},"devDependencies":{"css-whitespace":"^1.1.0","eslint":"^1.10.3","tap-spec":"^4.1.1","tape":"^4.7.0"},"scripts":{"lint":"eslint . --ignore-path .gitignore","test":"npm run lint && tape test/*.js | tap-spec"},"gitHead":"022901fff04ad6c06ed9cb6a06ab98e8419a41b3","bugs":{"url":"https://github.com/postcss/postcss-color-rgba-fallback/issues"},"homepage":"https://github.com/postcss/postcss-color-rgba-fallback#readme","_id":"postcss-color-rgba-fallback@3.0.0","_shasum":"37d5c9353a07a09270912a82606bb42a0d702c04","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"magsout","email":"guillaume.demesy@gmail.com"},"dist":{"shasum":"37d5c9353a07a09270912a82606bb42a0d702c04","tarball":"http://registry-npm.ywwl.com/postcss-color-rgba-fallback/download/postcss-color-rgba-fallback-3.0.0.tgz","integrity":"sha512-RBCHHCQ0sVJH+y31jiVSLBM/b3vvfiU8g9tyAglpF7NOuYzcw41Tu+iGEm8B2zVEAYYgEhWCASNY/j4Wh3vi4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlLlwtKo/UbHN9S7/PRnYolneGP1fujT/cAEym8GnbqwIhAK+F1EESPAs5y072fWbK9odsP+qcWfjjDv0bIu7YUzEl"}],"size":3510,"noattachment":false,"key":"/postcss-color-rgba-fallback/-/postcss-color-rgba-fallback-3.0.0.tgz"},"maintainers":[{"name":"magsout","email":"guillaume.demesy@gmail.com"},{"name":"moox","email":"m@moox.io"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-color-rgba-fallback-3.0.0.tgz_1499523171839_0.8576587119605392"},"directories":{},"readme":"# postcss-color-rgba-fallback [![Travis Build Status](https://travis-ci.org/postcss/postcss-color-rgba-fallback.svg)](https://travis-ci.org/postcss/postcss-color-rgba-fallback)\n\n> [PostCSS](https://github.com/postcss/postcss) plugin to transform rgba() to hexadecimal.\n\n## Installation\n\n```bash\n$ npm install postcss-color-rgba-fallback\n```\n\n## Usage\n\n```js\n// dependencies\nvar fs = require(\"fs\")\nvar postcss = require(\"postcss\")\nvar colorRgbaFallback = require(\"postcss-color-rgba-fallback\")\n\n// css to be processed\nvar css = fs.readFileSync(\"input.css\", \"utf8\")\n\n// process css\nvar output = postcss()\n  .use(colorRgbaFallback())\n  .process(css)\n  .css\n```\n\nUsing this `input.css`:\n\n```css\nbody {\n  background: rgba(153, 221, 153, 0.8);\n  border: solid 1px rgba(100,102,103,.3);\n}\n\n```\n\nyou will get:\n\n```css\nbody {\n  background: #99DD99;\n  background: rgba(153, 221, 153, 0.8);\n  border: solid 1px #646667;\n  border: solid 1px rgba(100,102,103,.3);\n}\n```\n\n## Node.js options\n\npostcss-color-rgba-fallback accepts options\n\n### `properties`\n\ndefault: `\n[ \"background-color\",\n  \"background\",\n  \"color\",\n  \"border\",\n  \"border-color\",\n  \"outline\",\n  \"outline-color ]\n`\n\nAllows you to specify your whitelist of properties.\n**This option enables adding a fallback for one or a properties list**\n\n### `oldie`\n\ndefault: `false`\n\nSet to true to enable the option and to get fallback for ie8\n\n### `backgroundColor`\n\ndefault: `null`\n\nAllows you to specify a background color to use as a base alpha matte.\n\nInstead of cutting off the alpha channel it will blend the foreground and background.\n\nExpects an array of rgb values:\n\n```js\n  \"backgroundColor\": [255, 1, 1]\n```\n\nCheckout [tests](test) for more examples.\n\n---\n\n## Contributing\n\nWork on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.\n\n    $ git clone https://github.com/postcss/postcss-color-rgba-fallback.git\n    $ git checkout -b patch-1\n    $ npm install\n    $ npm test\n\n## [Changelog](CHANGELOG.md)\n\n## [License](LICENSE)\n","publish_time":1499523172858,"_cnpm_publish_time":1499523172858,"dist-tags":{"latest":"4.0.0"}}