{"name":"@csstools/postcss-hwb-function","version":"1.0.0","keywords":["postcss","css","postcss-plugin","color","colors","rgb","rgba","hsl","hsla","hwb","functional","notation","design","syntax","space","comma"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"@csstools/postcss-hwb-function@1.0.0","homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"d6785c1c5ba8152d1d392c66f3a6a446c6034f6d","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-hwb-function/download/@csstools/postcss-hwb-function-1.0.0.tgz","fileCount":11,"integrity":"sha512-VSTd7hGjmde4rTj1rR30sokY3ONJph1reCBTUXqeW1fKwETPy1x4t/XIeaaqbMbC5Xg4SM/lyXZ2S8NELT2TaA==","signatures":[{"sig":"MEUCIDZo+XF2iF0RNmUdlP0Jng6F706q5ymBnmkmmncUbBVIAiEAvClbLhkUzs6hqx9QQzsrullvLMP6hOo1eHGWeWk9sZA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23329,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh7FkuCRA9TVsSAnZWagAARVAP/3VVnBnOaQCGb+HPXGwf\nmu1D7v8BZr/jqXRn1gN4bNMbpOFGlJmlHqZefqRFs8xxP+1JBMvKgtQ1Ngx8\nrL7TjxkHZ4PMH/ETTcXr9oo36o0jkwxA9BA0ayblc4Kp3nkj+JGqqFdG5P28\n502MK/r6wNaGmHAHDFAn+SWqmNmYN8sm876U1w/q2GCno7clFscd4EM0hiLh\nybPZjWV9Aldo49Xqu85yPfMwJL4tVZMWuMiimgPg+OZkALiBS2/b/Dmyzpmg\nB3xOdlzv+B0V1wGptJRJb77JoynEqQR5dCNb2dv/4Pkru8kZu6b/cW6opC3H\nDdmrwPNUAau9nFz73fFTyAoBiahFVqyQD8zTgbDKagnu5B2mGdA/EWW9xgBV\n9K7tJ71wmYr8DCH4Wz4T4shllYA6h4/PAOqK5syspEQV1nJO0yhGR1DGsSN+\nKuTzPKyCURnj76JYJfy7ilYbPLVp3vFDG4a7MI5084Fj1eci6X9qIvWV+jHg\niZBuX8F9CxxrxG5sEhAd39cQwOdz7q/H7SdXh6bmIn7JrlezwZLgDE8fAv8y\nE8BQyeronefTqqidO7MRxC5eZDuOv5Vve/J+FM9cLIg5SjP2E8qI62fFoXfE\ne1EQaKmjWWtgvDAi2Pu3SJzO3MXQYR+8mT5Zz7ksdmdIec2EfXbxxfyhqOQk\nPUeH\r\n=4vyT\r\n-----END PGP SIGNATURE-----\r\n","size":7479,"noattachment":false,"key":"/@csstools/postcss-hwb-function/-/@csstools/postcss-hwb-function-1.0.0.tgz"},"main":"dist/index.cjs","types":"./dist/index.d.ts","volta":{"extends":"../../package.json"},"module":"dist/index.mjs","engines":{"node":"^12 || ^14 || >=16"},"exports":{".":{"import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"ae8f620600aac4ff71a1a8ccb7cfac5cdda428f1","scripts":{"lint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","test":"node .tape.mjs && npm run test:exports","build":"rollup -c ../../rollup/default.js","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"","stryker":"stryker run --logLevel error","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","prepublishOnly":"npm run clean && npm run build && npm run test"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-hwb-function"},"_npmVersion":"8.1.2","description":"Use hwb() color functions in CSS","directories":{},"_nodeVersion":"16.13.1","dependencies":{"postcss-value-parser":"^4.2.0"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.3"},"_npmOperationalInternal":{"tmp":"tmp/postcss-hwb-function_1.0.0_1642879278171_0.6762477856417826","host":"s3://npm-registry-packages"},"readme":"# PostCSS HWB Function [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/@csstools/postcss-hwb-function.svg\" height=\"20\">][npm-url] [<img alt=\"Build Status\" src=\"https://github.com/csstools/postcss-plugins/workflows/test/badge.svg\" height=\"20\">][cli-url] [<img alt=\"Discord\" src=\"https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\">][discord]<br><br>[<img alt=\"Baseline Status\" src=\"https://cssdb.org/images/badges-baseline/hwb-function.svg\" height=\"20\">][css-url] [<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/hwb-function.svg\" height=\"20\">][css-url] \n\n```bash\nnpm install @csstools/postcss-hwb-function --save-dev\n```\n\n[PostCSS HWB Function] lets you use the `hwb()` color function in CSS, following [CSS Color Module 4].\n\n```pcss\na {\n\tcolor: hwb(194 0% 0%);\n}\n\nb {\n\tcolor: hwb(194 0% 0% / .5);\n}\n\n/* becomes */\n\na {\n\tcolor: rgb(0, 196, 255);\n}\n\nb {\n\tcolor: rgba(0, 196, 255, 0.5);\n}\n```\n\n## Usage\n\nAdd [PostCSS HWB Function] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-hwb-function --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssHWBFunction = require('@csstools/postcss-hwb-function');\n\npostcss([\n\tpostcssHWBFunction(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS HWB Function] runs in all Node environments, with special\ninstructions for:\n\n- [Node](INSTALL.md#node)\n- [PostCSS CLI](INSTALL.md#postcss-cli)\n- [PostCSS Load Config](INSTALL.md#postcss-load-config)\n- [Webpack](INSTALL.md#webpack)\n- [Next.js](INSTALL.md#nextjs)\n- [Gulp](INSTALL.md#gulp)\n- [Grunt](INSTALL.md#grunt)\n\n## Options\n\n### preserve\n\nThe `preserve` option determines whether the original notation\nis preserved. By default, it is not preserved.\n\n```js\npostcssHWBFunction({ preserve: true })\n```\n\n```pcss\na {\n\tcolor: hwb(194 0% 0%);\n}\n\nb {\n\tcolor: hwb(194 0% 0% / .5);\n}\n\n/* becomes */\n\na {\n\tcolor: rgb(0, 196, 255);\n\tcolor: hwb(194 0% 0%);\n}\n\nb {\n\tcolor: rgba(0, 196, 255, 0.5);\n\tcolor: hwb(194 0% 0% / .5);\n}\n```\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#hwb-function\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-hwb-function\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS HWB Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function\n[CSS Color Module 4]: https://www.w3.org/TR/css-color-4/#the-hwb-notation\n","publish_time":1642879278305,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_cnpm_publish_time":1642879278305,"dist-tags":{"latest":"5.0.17"}}