{"name":"postcss-color-rgba-fallback","version":"4.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"},"dependencies":{"postcss":"^7.0.17","postcss-value-parser":"^4.0.2","rgb-hex":"^3.0.0"},"devDependencies":{"css-whitespace":"^1.1.0","eslint":"^6.8.0","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":"96cda7e1587175322dcbfee601e3f6eb110899f3","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@4.0.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-XxjOy2dA/IYY/O9p492lklb0sw2lyshjXCoJQz7Y0YLxT1ymnep5d8LmQPkB+kCTVCzmniJNotiZhWM1RSfANA==","shasum":"b836c4a34c747cf9b16f1ebcd7d6016c299e0cf2","tarball":"http://registry-npm.ywwl.com/postcss-color-rgba-fallback/download/postcss-color-rgba-fallback-4.0.0.tgz","fileCount":5,"unpackedSize":8600,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeKHHFCRA9TVsSAnZWagAAk48QAJupAyv25uXIOBDwdjvv\nEaFaQXkGlIyOWyyX+G32606meGwUjc8PSTbWQ7NRVn1brrS47GVtnuWzLEqe\n5p/52Cj3nhcVuZqx9pM6y3J38ZkyqaLRsC9hZFHPyesoW44plYv0Gb5hpo2r\nrQ08sVGLHlZd2z3LPKbd877fWRQpAAXQjh/GrPGv5DS2FF6b2pOabCCI/2ZN\nyTtJlk9W8HMPetJoeXwdDpOOS94HUvRQ2W6LG38dDJJll0yx0JlG3nErxovF\nIFG8X/bHa8Xf2kgloHuREDjvA09NYPfyyuabq5FGBc/wLg/fYjBSNWxhJl2J\neYjtM2mqgZZKoAzuWHU7cpRiY8CpKUQ0C1XjGV6bI0+cA378HZAaulF3kYtt\nn1Wrui0eQAJVuzQhCZVrlVo2HGbO7ScMFb2tcVecu3UMqy+XM5/VC/84voo9\nVEbrIcQo5plQ9B8mMq73LX6Xw2rC09z2afPd15bYLUtXiYLIfK7gsjqrA2yl\nAD2ROOntRhI30Q39w6Hm0GP9oBtK3pvNbLtyjRYNQxcbwlYvZ+tMK9aRXDML\nyBWlKGOGKnDWAV7z7S9fXPaC09Cd0KN1o0vlJebGOGVRjO6Ab7r2aIz8Btxg\nBT2YWBSu5/9MbAt6bIPSX5SxIecsfloFW4/ZQ36HLSSpZnxEi/V/DSaWEpm7\n4GGe\r\n=MmMg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHv31ZOAcoJ48FqEfXlGEDiBdl/b6+DTSLmmwRtwx85uAiEAl3AHWcN0Qg7Du3Txn9Ai/R2KRnZwofsqlbVVsFsiQsY="}],"size":3482,"noattachment":false,"key":"/postcss-color-rgba-fallback/-/postcss-color-rgba-fallback-4.0.0.tgz"},"maintainers":[{"name":"magsout","email":"guillaume.demesy@gmail.com"},{"name":"moox","email":"m@moox.io"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmUser":{"name":"semigradsky","email":"semigradskyd@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-color-rgba-fallback_4.0.0_1579708869558_0.05310722220649566"},"_hasShrinkwrap":false,"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":1579708869685,"_cnpm_publish_time":1579708869685,"dist-tags":{"latest":"4.0.0"}}