{"name":"postcss-color-rgba-fallback","version":"1.0.0","description":"PostCSS plugin to transform rgba() to hexadecimal","keywords":["css","postcss","postcss-plugins","rgba","hexadecimal","node modules","npm"],"author":{"name":"Guillaume Démésy"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-color-rgba-fallback.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{"postcss":"^4.0.2","color-string":"^0.3.0"},"devDependencies":{"css-whitespace":"^1.1.0","jscs":"^1.6.2","jshint":"^2.5.6","tape":"^3.0.0"},"scripts":{"jscs":"jscs .","jshint":"jshint . --exclude-path .gitignore","pretest":"npm run jscs && npm run jshint","test":"tape test/*.js"},"gitHead":"5b3fc6c60b07ca7932b1efe70692a6ff94b91e71","bugs":{"url":"https://github.com/postcss/postcss-color-rgba-fallback/issues"},"homepage":"https://github.com/postcss/postcss-color-rgba-fallback","_id":"postcss-color-rgba-fallback@1.0.0","_shasum":"015f2eb25376c714cfa082bed1be996d981cb601","_from":".","_npmVersion":"2.1.7","_nodeVersion":"0.10.21","_npmUser":{"name":"magsout","email":"guillaume.demesy@gmail.com"},"dist":{"shasum":"015f2eb25376c714cfa082bed1be996d981cb601","tarball":"http://registry-npm.ywwl.com/postcss-color-rgba-fallback/download/postcss-color-rgba-fallback-1.0.0.tgz","integrity":"sha512-ugqYMoVCajCCPLIztsufA5kDJA54/6nBk5kvOYCRfta9in8p1FziJMsUnYJJUPGD926rQd+/5jEFEyHlQa5YNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLN1iM4wQESdqXXRU0+9TzZW4tmxiUgr64LqzzDQ8slwIgPy7yqlgTARt0SiLxiYEdf2et5yToAGL3UqJ2KEPWcwI="}],"size":2244,"noattachment":false,"key":"/postcss-color-rgba-fallback/-/postcss-color-rgba-fallback-1.0.0.tgz"},"maintainers":[{"name":"magsout","email":"guillaume.demesy@gmail.com"}],"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":1429186489283,"_cnpm_publish_time":1429186489283,"dist-tags":{"latest":"4.0.0"}}