{"name":"postcss-color-rgba-fallback","version":"2.1.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":"645c341484a91aac435b7309f8f9c380159a82d6","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.1.0","_shasum":"7e83a0096c383fb555a79df1c425ef4b92755cf6","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"magsout","email":"guillaume.demesy@gmail.com"},"dist":{"shasum":"7e83a0096c383fb555a79df1c425ef4b92755cf6","tarball":"http://registry-npm.ywwl.com/postcss-color-rgba-fallback/download/postcss-color-rgba-fallback-2.1.0.tgz","integrity":"sha512-5d3KzFrEr4HX2w2tiMDb7ZYYDTEi40dS+0O9fa+ohQrkfQjbTcl9va6XscnusbBkn331ukoUeYRHkP/JM4EmgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtpcXv5esdQZ5cNbIsHnwPLBrOckAR+xSQ9o8J+hBrPgIgIUSQGyv+fn/beVcmLsW658lbrMmml+ZPnTCeJ76/85w="}],"size":3058,"noattachment":false,"key":"/postcss-color-rgba-fallback/-/postcss-color-rgba-fallback-2.1.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":1451401127508,"_cnpm_publish_time":1451401127508,"dist-tags":{"latest":"4.0.0"}}