{"name":"@csstools/postcss-hwb-function","version":"2.0.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.0.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":"626c2cfab8d3baec1deca0c4229f7cce07869cb2","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-hwb-function/download/@csstools/postcss-hwb-function-2.0.1.tgz","fileCount":11,"integrity":"sha512-IYoJZ/lDgbXr5iRxlIYdTirWRerrcpezfpP6Xr+bfu8KJRgSMQVOxmXpfJwEXQuTBiX+DyVcAz+IbDdOexHq9g==","signatures":[{"sig":"MEUCIQCKjsnihpaYhtiy6hgtS9cgBItePUy0FhOU9w/M/Q20PQIgcX/nD4nWVflUImAdRqzEpGFvDVcpnvQ6dfotX52FGIs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26484,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1NGTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4mg//SuF3/p8Vj4ss4YCmhXMaLLFJVKKmJvUnW21djxRVYRZe0v8f\r\ng7cexfEhqFxj8OIECzr3XFZtutcN3RAV8BP5XyY0iCawFx030fP7GqVfUqWN\r\nTMrYrifIyEt7k5WkaDolA5MQiuAUMsjJK5Rrep4dKnhs2AUpcbT8D+WO5zS5\r\nxhnIGhox7A8vZjBY2b9K1wVwj5YkiKaE21iSQZdBdXIDccyn1nYLl+aA2Mur\r\n4LvXJK81OGa1/QPyvPBiyYXlneS1l1L8CJ5rGH6W3GNI7i4yAcmX8e3k7Qmv\r\nuD84aSgbaCuUjEkL6CQ6ix9lSWz6dc+m8Swfz3P6hOunWJ8D2pEDI1yEV/Pu\r\n9hlZEqkZgdYxI2+mIJzyym8QzCSCzewCIhVU94FBHu0B9QFv2BbyvH+2VMG9\r\naC8hkVfqoEuF+ButmMyh2bEhhc+/TiMcI1CdqrgcZWVC1RCctNGngS6G4wji\r\nU4De4mAnWJl+Ez6nDhJ5HBhc8xLdpiiBqgqMFH5ISWelTiskoaS/onkGASpY\r\nkQHav8np+8PuINbLN0QYDPwvDzdhB/BIt7ZIpXjKVJUAcG+jHCc89xS7DMdX\r\n9vOKIjq0Jh7u5CPzPNujeFFinr7cfvDUDTtqiadyUxp7ZJ9F9mUhNtT69FnH\r\nB6IUPPAiAtCWLwbB65eGviitluQyihGcthM=\r\n=cW9N\r\n-----END PGP SIGNATURE-----\r\n","size":7766,"noattachment":false,"key":"/@csstools/postcss-hwb-function/-/@csstools/postcss-hwb-function-2.0.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":"48552b8bf3dd6a9304f975143014e5f23bae5099","scripts":{"docs":"node ../../.github/bin/generate-docs/install.mjs","lint":"npm run lint:eslint && npm run lint:package-json","test":"node .tape.mjs && npm run test:exports","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","prebuild":"npm run clean","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","prepublishOnly":"npm run clean && npm run build && npm run test","lint:package-json":"node ../../.github/bin/format-package-json.mjs","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":"8.18.0","description":"Use hwb() color functions in CSS","directories":{},"_nodeVersion":"18.8.0","dependencies":{"postcss-value-parser":"^4.2.0"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"tmp":"tmp/postcss-hwb-function_2.0.1_1674891666820_0.1693795930941211","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":1674891667023,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_cnpm_publish_time":1674891667023,"dist-tags":{"latest":"5.0.17"}}