{"name":"@csstools/postcss-hwb-function","description":"Use hwb() color functions in CSS","version":"4.0.5","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT-0","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":">=18"},"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"dependencies":{"@csstools/css-color-parser":"^3.0.5","@csstools/css-parser-algorithms":"^3.0.4","@csstools/css-tokenizer":"^3.0.3","@csstools/postcss-progressive-custom-properties":"^4.0.0","@csstools/utilities":"^2.0.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-hwb-function"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["color","css","design","hwb","notation","postcss","postcss-plugin","syntax"],"_id":"@csstools/postcss-hwb-function@4.0.5","gitHead":"6938c2f26ac6b1c76e06b7b54775e766d65c7b9c","types":"./dist/index.d.ts","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-bPn/SQyiiYjWkwK2ykc7O9LliMR50YfUGukd6jQI2okHzB7NxNt/IS45tS1Muk7Hhf3B9Lbmg1Ofq36tBmM92Q==","shasum":"63a3e45919e5ab8d041a6c1d7b38f9e6f037b7ff","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-hwb-function/download/@csstools/postcss-hwb-function-4.0.5.tgz","fileCount":7,"unpackedSize":8271,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeEHDjl+RsMe2hoplBVlLaCavlBnJt9RFkec8OjDUH7QIgT5Si1NnuPDYAUyw1fc2/e9CEYE2BAwcVcUch/M+81XQ="}],"size":3167,"noattachment":false,"key":"/@csstools/postcss-hwb-function/-/@csstools/postcss-hwb-function-4.0.5.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-hwb-function_4.0.5_1730498391362_0.9870787004384383"},"_hasShrinkwrap":false,"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`npm install @csstools/postcss-hwb-function --save-dev`\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\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":1730498391557,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_cnpm_publish_time":1730498391557,"dist-tags":{"latest":"5.0.17"}}