{"name":"@csstools/postcss-hwb-function","version":"2.2.1","keywords":["color","comma","css","design","functional","hsl","hsla","hwb","notation","postcss","postcss-plugin","rgb","rgba","space","syntax"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"@csstools/postcss-hwb-function@2.2.1","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":"ab50918104e4ef500c42e55e4ccdd27fc33d52b9","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-hwb-function/download/@csstools/postcss-hwb-function-2.2.1.tgz","fileCount":10,"integrity":"sha512-eiqB4DIs+xqProAly7KwIgE04oze1YHb0QSCw/Y7062d9gpw+Cdif3Y0Z+Te+U7JROYdO0/0j91A6Qy8fo/Rlw==","signatures":[{"sig":"MEQCIETd4O9NcsOkV+mSEeTkqPAxn8Supu0TPljaZyEFcZVfAiAZVBrCc8bF05/57bXW2fkQiG1AqHiNpq+uHIetgLiWKw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkM+2pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmry8g//Tewa1znxDnvOmrfYrqHs8OFnS0E8W26nj45et3VUo39FFw7G\r\nDwjTUMON9V8RhYn1vk1zt8Bebj16GTjU6Cy5AGfOS38pRWb36/G+iKOJYz7p\r\ntAHfjwwTPKgz/5LFOQK15hZGlTyNOIIp3OmQ8jIp4yghQkMJV6DDiNGTY6Wy\r\nTjbLg+nGmmj6RomOhJUysR3ZUG0LgoS36bNx0/FcYjvbfmoC0ibtBdWO1/Ld\r\nNJ/4/+EoGCBGDvj+r+duVHvMGcdTZjd8LqUhYXH90HN9dzjDtWtopYOHubbn\r\n+UIN7+DZR/zNeCDxnL9G4oH/ez/8YBowD3GBQsUxREy6+CngwPm1hy4MfDaO\r\npXEryiSIQwDuQZ+Nr2hrnA/YpfBGfJGyJFn3qcVtoXvOYRZPtL9THU3QPg5P\r\nvsIht7rNiGaWn5uxT4/OAOpSOW0gc9F/XDxOYevYXT3zf48Mme+qGoMQ4O7t\r\nU433rN4AXlylrEjVHnYN/gpFNvdiV5cEb1DB7g/TG6LCH2maluNLMHtHL/CJ\r\nqv9Go7strW2s3FGhckXVA0NeqpaAcRFFnggMTsDuKUtJeTi1jRL0oZelSeOD\r\nXUc5aTk8UMABrKYN+evqVgZhOsIMW5FGl/csIqFieMIiMwJBnCfk3yHsEzzK\r\nijABrDjyyYxXHuHdCjxyNHAg3Q4IjvdsN24=\r\n=p5mb\r\n-----END PGP SIGNATURE-----\r\n","size":7057,"noattachment":false,"key":"/@csstools/postcss-hwb-function/-/@csstools/postcss-hwb-function-2.2.1.tgz"},"main":"dist/index.cjs","types":"./dist/index.d.ts","volta":{"extends":"../../package.json"},"module":"dist/index.mjs","engines":{"node":"^14 || ^16 || >=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"funding":{"url":"https://opencollective.com/csstools","type":"opencollective"},"gitHead":"1dea6d94a0b502828782d5fee7159f5590c49833","scripts":{"docs":"node ../../.github/bin/generate-docs/install.mjs","lint":"node ../../.github/bin/format-package-json.mjs","test":"node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs","build":"rollup -c ../../rollup/default.mjs","prepublishOnly":"npm run build && npm run test","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"csstools":{"exportName":"postcssHWBFunction","humanReadableName":"PostCSS HWB Function"},"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-hwb-function"},"_npmVersion":"9.4.1","description":"Use hwb() color functions in CSS","directories":{},"_nodeVersion":"18.13.0","dependencies":{"@csstools/css-tokenizer":"^2.1.1","@csstools/css-color-parser":"^1.1.2","@csstools/css-parser-algorithms":"^2.1.1"},"_hasShrinkwrap":false,"devDependencies":{"@csstools/postcss-tape":"*"},"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"tmp":"tmp/postcss-hwb-function_2.2.1_1681124777506_0.3365900097868706","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":1681124777750,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_cnpm_publish_time":1681124777750,"dist-tags":{"latest":"5.0.17"}}