{"_id":"@csstools/postcss-hwb-function@5.0.12","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"4e3c7cc9ce2f27ab9580a92fab84c9f7f2d74bfe","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-hwb-function/download/@csstools/postcss-hwb-function-5.0.12.tgz","fileCount":6,"integrity":"sha512-R7hKUGqJs2k3EI/l2Mw5hsYThnymsZEUkHuWV8KHxx1acnO8eJRAW8B/G3JwXiUSi8w7wMSoUsBhuWlmkDdpOg==","signatures":[{"sig":"MEQCIAmP313tPhdPU2OsYTZfueN5qg7g4q3YFV3vbj61eNIiAiAuJeBGLSJFvIn82UCMyqJvj290xEEOKNO/vP06DZxk1g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEAQZvBVo1HBdj/azr8WU2zqfjjY6YDrMYHENMmnHHyXAiBvUhU1+GKWOgrDE7TQD1Bgrqzemq1A7Gv06gz69GoU7A=="}],"unpackedSize":6540,"size":2859,"noattachment":false,"key":"/@csstools/postcss-hwb-function/-/@csstools/postcss-hwb-function-5.0.12.tgz"},"name":"@csstools/postcss-hwb-function","type":"module","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"}},"funding":[{"url":"https://github.com/sponsors/csstools","type":"github"},{"url":"https://opencollective.com/csstools","type":"opencollective"}],"gitHead":"6f6a92d83abcc6e1328adc6b72c8ffddb7b4d4bc","license":"MIT-0","scripts":{},"version":"5.0.12","_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-hwb-function#readme","keywords":["color","css","design","hwb","notation","postcss","postcss-plugin","syntax"],"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-hwb-function"},"_npmVersion":"11.13.0","description":"Use hwb() color functions in CSS","directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_nodeVersion":"26.1.0","contributors":[{"url":"https://antonio.laguna.es","name":"Antonio Laguna","email":"antonio@laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"dependencies":{"@csstools/utilities":"^3.0.0","@csstools/css-tokenizer":"^4.0.0","@csstools/css-color-parser":"^4.2.3","@csstools/css-parser-algorithms":"^4.0.0","@csstools/postcss-progressive-custom-properties":"^5.1.3"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-hwb-function_5.0.12_1789286711650_0.5820599957155554"},"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```css\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```css\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":1789286711728,"_cnpm_publish_time":1789286711728,"dist-tags":{"latest":"5.0.17"}}