{"name":"postcss-color-rgba-fallback","version":"2.2.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":"^5.0.0","postcss-value-parser":"^3.0.2","rgb-hex":"^1.0.0"},"devDependencies":{"css-whitespace":"^1.1.0","eslint":"^1.0.0-rc-1","tap-spec":"^4.1.0","tape":"^4.0.1"},"scripts":{"lint":"eslint . --ignore-path .gitignore","test":"npm run lint && tape test/*.js | tap-spec"},"gitHead":"5b924ce9c056976bc5e492a1738f9f24530d8300","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@2.2.0","_shasum":"6d29491be5990a93173d47e7c76f5810b09402ba","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"magsout","email":"guillaume.demesy@gmail.com"},"dist":{"shasum":"6d29491be5990a93173d47e7c76f5810b09402ba","tarball":"http://registry-npm.ywwl.com/postcss-color-rgba-fallback/download/postcss-color-rgba-fallback-2.2.0.tgz","integrity":"sha512-AfA5ez+UyKso6Mz7/Y3F1fqPrMOxD65RGpazCm3pANziZXNf0ptvAdZdX3sggflQ4DgHSD+z14GIT+9rggVGkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFm/8UroY8ecs2eUBGdT/bdbzmguAMDjhR3mF9rvLWlFAiAGnSEMU9ZbMoOpnE0TgZHfLvD6JfbQ/e0yq3LcUyUciQ=="}],"size":3466,"noattachment":false,"key":"/postcss-color-rgba-fallback/-/postcss-color-rgba-fallback-2.2.0.tgz"},"maintainers":[{"name":"magsout","email":"guillaume.demesy@gmail.com"},{"name":"moox","email":"m@moox.io"},{"name":"trysound","email":"trysound@yandex.ru"}],"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":1451468527196,"_cnpm_publish_time":1451468527196,"dist-tags":{"latest":"4.0.0"}}