{"_id":"postcss-color-function","_rev":"306151","name":"postcss-color-function","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","dist-tags":{"latest":"4.1.0"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"time":{"modified":"2021-06-03T19:32:19.000Z","created":"2014-10-04T05:58:05.770Z","4.1.0":"2019-04-01T18:34:45.791Z","4.0.1":"2017-11-03T10:10:09.112Z","4.0.0":"2017-05-15T10:58:08.795Z","3.0.0":"2017-02-01T06:52:03.031Z","2.0.1":"2016-03-15T14:31:35.656Z","2.0.0":"2015-09-07T05:01:35.711Z","1.3.2":"2015-07-08T05:28:58.683Z","1.3.0":"2015-06-15T07:41:19.734Z","1.2.0":"2015-03-12T06:16:47.458Z","1.1.0":"2014-11-25T07:52:14.182Z","1.0.0":"2014-10-04T05:58:05.770Z"},"users":{"asaupup":true,"danielbayley":true,"langri-sha":true,"nuwaio":true},"author":{"name":"Maxime Thirouin"},"repository":{"type":"git","url":"git+https://github.com/postcss/postcss-color-function.git"},"versions":{"4.1.0":{"name":"postcss-color-function","version":"4.1.0","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugin","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-color-function.git"},"dependencies":{"css-color-function":"~1.3.3","postcss":"^6.0.23","postcss-message-helpers":"^2.0.0","postcss-value-parser":"^3.3.1"},"devDependencies":{"eslint":"^3.19.0","faucet":"0.0.1","npmpub":"^3.1.0","tape":"^4.10.1"},"scripts":{"lint":"eslint *.js index.js ./test/","test":"npm run lint && tape test | faucet","release":"npmpub"},"gitHead":"f81fb376514ed61b8307a49952e3df755a6a2d58","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function#readme","_id":"postcss-color-function@4.1.0","_nodeVersion":"11.11.0","_npmVersion":"6.9.0","dist":{"shasum":"b6f9355e07b12fcc5c34dab957834769b03d8f57","size":3919,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-4.1.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-color-function_4.1.0_1554143685652_0.4476677049632627"},"_hasShrinkwrap":false,"publish_time":1554143685791,"_cnpm_publish_time":1554143685791},"4.0.1":{"name":"postcss-color-function","version":"4.0.1","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugin","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-color-function.git"},"files":["index.js"],"dependencies":{"css-color-function":"~1.3.3","postcss":"^6.0.1","postcss-message-helpers":"^2.0.0","postcss-value-parser":"^3.3.0"},"devDependencies":{"eslint":"^3.19.0","npmpub":"^3.1.0","tape":"^3.0.0"},"scripts":{"lint":"eslint *.js index.js ./test/","test":"npm run lint && tape test","release":"npmpub"},"gitHead":"ca0891f86554877eb1263716c881c387e5fb691d","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function#readme","_id":"postcss-color-function@4.0.1","_shasum":"402b3f2cebc3f6947e618fb6be3654fbecef6444","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.1","_npmUser":{"name":"semigradsky","email":"semigradskyd@gmail.com"},"dist":{"shasum":"402b3f2cebc3f6947e618fb6be3654fbecef6444","size":3675,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-4.0.1.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-color-function-4.0.1.tgz_1509703808230_0.502085832413286"},"directories":{},"publish_time":1509703809112,"_hasShrinkwrap":false,"_cnpm_publish_time":1509703809112},"4.0.0":{"name":"postcss-color-function","version":"4.0.0","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugin","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-color-function.git"},"files":["index.js"],"dependencies":{"css-color-function":"^1.3.0","postcss":"^6.0.1","postcss-message-helpers":"^2.0.0","postcss-value-parser":"^3.3.0"},"devDependencies":{"eslint":"^3.19.0","npmpub":"^3.1.0","tape":"^3.0.0"},"scripts":{"lint":"eslint *.js index.js ./test/","test":"npm run lint && tape test","release":"npmpub"},"gitHead":"9dc87a103a7c78cf0d3b191eeaa48747b30d2b9c","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function#readme","_id":"postcss-color-function@4.0.0","_shasum":"7e0106f4f6a1ecb1ad5b3a8553ace5e828aae187","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"semigradsky","email":"semigradskyd@gmail.com"},"dist":{"shasum":"7e0106f4f6a1ecb1ad5b3a8553ace5e828aae187","size":3560,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-4.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postcss-color-function-4.0.0.tgz_1494845887633_0.25002467376179993"},"directories":{},"publish_time":1494845888795,"_hasShrinkwrap":false,"_cnpm_publish_time":1494845888795},"3.0.0":{"name":"postcss-color-function","version":"3.0.0","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugin","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-color-function.git"},"files":["index.js"],"dependencies":{"css-color-function":"^1.2.0","postcss":"^5.0.4","postcss-message-helpers":"^2.0.0","postcss-value-parser":"^3.3.0"},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","npmpub":"^3.1.0","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test","release":"npmpub"},"gitHead":"539d571ab39a2759e62094fa2200c8dd586e09b3","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function#readme","_id":"postcss-color-function@3.0.0","_shasum":"3c6fb60c6ff2240e541d49f2926edcad8700f3a6","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"moox","email":"m@moox.io"},"dist":{"shasum":"3c6fb60c6ff2240e541d49f2926edcad8700f3a6","size":3404,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-3.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-color-function-3.0.0.tgz_1485931921109_0.28177959052845836"},"directories":{},"publish_time":1485931923031,"_cnpm_publish_time":1485931923031,"_hasShrinkwrap":false},"2.0.1":{"name":"postcss-color-function","version":"2.0.1","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugin","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-color-function.git"},"files":["index.js"],"dependencies":{"css-color-function":"^1.2.0","postcss":"^5.0.4","postcss-message-helpers":"^2.0.0","postcss-value-parser":"^3.3.0"},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","npmpub":"^3.1.0","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test","release":"npmpub"},"gitHead":"ad1e58c1e25fd007a2c91acf168aba23cb371e12","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function#readme","_id":"postcss-color-function@2.0.1","_shasum":"9ad226f550e8a7c7f8b8a77860545b6dd7f55241","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.1","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"dist":{"shasum":"9ad226f550e8a7c7f8b8a77860545b6dd7f55241","size":3154,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-2.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-color-function-2.0.1.tgz_1458052291979_0.16653255512937903"},"directories":{},"publish_time":1458052295656,"_cnpm_publish_time":1458052295656,"_hasShrinkwrap":false},"2.0.0":{"name":"postcss-color-function","version":"2.0.0","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugin","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-color-function.git"},"files":["index.js"],"dependencies":{"balanced-match":"^0.1.0","css-color-function":"^1.2.0","postcss":"^5.0.4","postcss-message-helpers":"^2.0.0"},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test"},"gitHead":"f27b25d2e0ac5217dbacab63d094b76adbd5c0fd","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function#readme","_id":"postcss-color-function@2.0.0","_shasum":"d1e96f58f628474137738d3c0e160c5155207ec4","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.3.0","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"dist":{"shasum":"d1e96f58f628474137738d3c0e160c5155207ec4","size":3276,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-2.0.0.tgz"},"directories":{},"publish_time":1441602095711,"_cnpm_publish_time":1441602095711,"_hasShrinkwrap":false},"1.3.2":{"name":"postcss-color-function","version":"1.3.2","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugin","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-color-function.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{"balanced-match":"^0.1.0","css-color-function":"^1.2.0","postcss":"^4.1.11","postcss-message-helpers":"^1.1.0"},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test"},"gitHead":"58b78d73bc7f38b860cc63abea40b5c04fd70b80","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function#readme","_id":"postcss-color-function@1.3.2","_shasum":"60b3a1ce45dfb70404c7cedfe633dd685c6cc189","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"dist":{"shasum":"60b3a1ce45dfb70404c7cedfe633dd685c6cc189","size":3222,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-1.3.2.tgz"},"directories":{},"publish_time":1436333338683,"_cnpm_publish_time":1436333338683,"_hasShrinkwrap":false},"1.3.0":{"name":"postcss-color-function","version":"1.3.0","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugin","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/postcss/postcss-color-function.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{"balanced-match":"^0.1.0","css-color-function":"^1.2.0","postcss":"^4.1.11","postcss-message-helpers":"^1.1.0"},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test"},"gitHead":"f3f1c521c7684dff732aeda22360263ff0861dbc","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function#readme","_id":"postcss-color-function@1.3.0","_shasum":"3816818c2eb48ab66c24fc25835bc2789a79cc3f","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"dist":{"shasum":"3816818c2eb48ab66c24fc25835bc2789a79cc3f","size":3110,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-1.3.0.tgz"},"directories":{},"publish_time":1434354079734,"_cnpm_publish_time":1434354079734,"_hasShrinkwrap":false},"1.2.0":{"name":"postcss-color-function","version":"1.2.0","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugins","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-color-function.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{"balanced-match":"^0.1.0","css-color-function":"^1.2.0","postcss-message-helpers":"^1.1.0"},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","postcss":"^4.0.2","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test"},"gitHead":"13c9347823b5af9e075431af3ce11e49bbdbee7c","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function","_id":"postcss-color-function@1.2.0","_shasum":"96789cfc7a9417d24671ee22d227895793b192dd","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"dist":{"shasum":"96789cfc7a9417d24671ee22d227895793b192dd","size":3086,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-1.2.0.tgz"},"publish_time":1426141007458,"_cnpm_publish_time":1426141007458,"_hasShrinkwrap":false},"1.1.0":{"name":"postcss-color-function","version":"1.1.0","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugins","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-color-function.git"},"files":["CHANGELOG.md","LICENSE","index.js"],"dependencies":{"balanced-match":"^0.1.0","css-color-function":"^1.1.1","postcss-message-helpers":"^1.1.0"},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","postcss":"^3.0.0","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test"},"gitHead":"c9994cfdcafe0b82310bd5bcb35c71645640a431","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function","_id":"postcss-color-function@1.1.0","_shasum":"faf713fb7538194600b200403edf17e9bd55ebca","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.33","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"dist":{"shasum":"faf713fb7538194600b200403edf17e9bd55ebca","size":2309,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-1.1.0.tgz"},"directories":{},"publish_time":1416901934182,"_cnpm_publish_time":1416901934182,"_hasShrinkwrap":false},"1.0.0":{"name":"postcss-color-function","version":"1.0.0","description":"PostCSS plugin to transform W3C CSS color function to more compatible CSS.","keywords":["css","postcss","postcss-plugins","color","colour","function"],"author":{"name":"Maxime Thirouin"},"license":"MIT","repository":{"type":"git","url":"https://github.com/postcss/postcss-color-function.git"},"files":["CHANGELOG.md","LICENSE","README.md","index.js"],"dependencies":{"balanced-match":"^0.1.0","css-color-function":"^1.1.1"},"devDependencies":{"jscs":"^1.6.2","jshint":"^2.5.6","postcss":"^2.2.5","tape":"^3.0.0"},"scripts":{"lint":"jscs *.js **/*.js && jshint . --exclude-path .gitignore","test":"npm run lint && tape test"},"gitHead":"134743f02beaa7fdca4e26db799d32bbcd8789c5","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"homepage":"https://github.com/postcss/postcss-color-function","_id":"postcss-color-function@1.0.0","_shasum":"5e9084e51be9ed901b17125cbc67ddad2895316d","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.32","_npmUser":{"name":"moox","email":"m@moox.io"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"semigradsky","email":"semigradskyd@gmail.com"}],"dist":{"shasum":"5e9084e51be9ed901b17125cbc67ddad2895316d","size":2435,"noattachment":false,"key":"/postcss-color-function/-/postcss-color-function-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-color-function/download/postcss-color-function-1.0.0.tgz"},"directories":{},"publish_time":1412402285770,"_cnpm_publish_time":1412402285770,"_hasShrinkwrap":false}},"readme":"# postcss-color-function [![Build Status](https://travis-ci.org/postcss/postcss-color-function.svg)](https://travis-ci.org/postcss/postcss-color-function)\n\n[PostCSS](https://github.com/postcss/postcss) plugin to transform CSS color function from editor draft of 'Color Module Level 4' specification to more compatible CSS.\n\n## Deprecated\n\n**⚠️ `color()` was changed to `color-mod()`. See [postcss-color-mod-function](https://github.com/jonathantneal/postcss-color-mod-function).**\n\n> There is a\n  [`color-mod`](https://github.com/jonathantneal/postcss-color-mod-function)\n  implementation.\n\n**⚠️ `color-mod()` has been removed from [Color Module Level 4 specification](https://www.w3.org/TR/css-color-4/#changes-from-20160705).**\n\n## Installation\n\n```console\nnpm install postcss-color-function\n```\n\n## Usage\n\n```js\n// dependencies\nvar fs = require(\"fs\")\nvar postcss = require(\"postcss\")\nvar colorFunction = require(\"postcss-color-function\")\n\n// css to be processed\nvar css = fs.readFileSync(\"input.css\", \"utf8\")\n\n// process css\n// set preserveCustomProps to `false` by default `true`\n//for delete declarations with custom properties\nvar output = postcss()\n  .use(colorFunction({preserveCustomProps: true}))\n  .process(css)\n  .css\n```\n\nUsing this `input.css`:\n\n```css\nbody {\n  background: color(red a(90%))\n}\n\n```\n\nyou will get:\n\n```css\nbody {\n  background: rgba(255, 0, 0, 0.9)\n}\n```\n\nCheckout [tests](test) for examples.\n\n## Interface (according to CSS specs)\n\n```\ncolor( [ <color> | <hue> ] <color-adjuster>* )\n```\n\n### List of `color-adjuster`\n\n- `[red( | green( | blue( | alpha( | a(] ['+' | '-']? [<number> | <percentage>] )`\n- `[red( | green( | blue( | alpha( | a(] '*' <percentage> )`\n- ~~`rgb( ['+' | '-'] [<number> | <percentage>]{3} )`~~ @todo\n- ~~`rgb( ['+' | '-'] <hash-token> )`~~ @todo\n- ~~`rgb( '*' <percentage> ) |`~~ @todo\n- `[hue( | h(] ['+' | '-' | '*']? <angle> )`\n- `[saturation( | s(] ['+' | '-' | '*']? <percentage> )`\n- `[lightness( | l(] ['+' | '-' | '*']? <percentage> )`\n- `[whiteness( | w(] ['+' | '-' | '*']? <percentage> )`\n- `[blackness( | b(] ['+' | '-' | '*']? <percentage> )`\n- `tint( <percentage> )`\n- `shade( <percentage> )`\n- `blend( <color> <percentage> [rgb | hsl | hwb]? )`\n- ~~`blenda( <color> <percentage> [rgb | hsl | hwb]? )`~~ @todo\n- `contrast( <percentage>? )`\n\nNotes:\n\n- some adjusts have shortcuts,\n- can be used on every value on any property,\n- some values can use add/subtract/scale modifiers or a direct value.\n\n### Examples\n\n```css\nwhatever {\n  color: color(red a(10%));\n\n  background-color: color(red lightness(50%)); /* == color(red l(50%)); */\n\n  border-color: color(hsla(125, 50%, 50%, .4) saturation(+ 10%) w(- 20%));\n}\n```\n\n## FAQ\n\n### Can you support `currentcolor` so we can do `color(currentcolor adjuster())`?\n\nNo we cannot do that. `currentcolor` depends on the cascade (so the DOM) and we can't handle that in a simple preprocessing step. You need to handle that with polyfills.\n\n### Can we use CSS custom properties so we can do `color(var(--mainColor) adjuster())`?\n\nBy using [postcss-custom-properties](https://github.com/postcss/postcss-custom-properties) before this plugin, you can do that (sort of).\nYou have some examples in [cssnext playground](http://cssnext.io/playground/).\n\n## Notes for former Sass users\n\n`lighten` and `darken` are Sass specific methods and not supported by native CSS specs. The same functionality can be achieved with the [tint and shade adjusters](https://drafts.csswg.org/css-color/#tint-shade-adjusters):\n\n```css\n$lighten(red, 20%)\n/*  is equivalent to */\ncolor(red tint(20%))\n\n$darken(red, 20%)\n/*  is equivalent to */\ncolor(red shade(20%))\n```\n\n---\n\n## [Changelog](CHANGELOG.md)\n\n## [License](LICENSE)\n","_attachments":{},"homepage":"https://github.com/postcss/postcss-color-function#readme","bugs":{"url":"https://github.com/postcss/postcss-color-function/issues"},"license":"MIT"}