{"_id":"@csstools/postcss-color-mix-function@4.0.14","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"0f6811e0ef8fdfac41f28220333657ff196f8258","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-color-mix-function/download/@csstools/postcss-color-mix-function-4.0.14.tgz","fileCount":6,"integrity":"sha512-wvffoY+DSOLF50dFR6YpuSD4zojvq3flCycseemwdvnNwPDuyUv+76T6FDixp+3388p7IRtN0Y+/MXoderemoA==","signatures":[{"sig":"MEUCIBoBxHBXyuVCVENO0DcBUKXMKtE0fQaHCBkOzVwVuwwgAiEArwvxP6mWwCa0ITz4U0bEErguOEdp1N6fOOPmkei0on4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICA5NRBqyJsrQGK+9qnsbtgsiiqzXVfkUGsDYxQh3ULhAiEAweQ27f6PNm58WcOKPovhfTlZN1RPJfR8axR/+aw7cVA="}],"unpackedSize":7443,"size":3149,"noattachment":false,"key":"/@csstools/postcss-color-mix-function/-/@csstools/postcss-color-mix-function-4.0.14.tgz"},"name":"@csstools/postcss-color-mix-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":"01baf558c359e407be33e71e496eb06bb1d4e7a5","license":"MIT-0","scripts":{},"version":"4.0.14","_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function#readme","keywords":["color","color-mix","css","display-p3","function","interpolation","postcss","postcss-plugin","prophoto-rgb","rec2020","rgb","rgba","srgb-linear","syntax","xyz"],"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-color-mix-function"},"_npmVersion":"11.13.0","description":"Use the color-mix function 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.2","@csstools/css-color-parser":"^4.2.5","@csstools/css-parser-algorithms":"^4.0.2","@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-color-mix-function_4.0.14_1790835768275_0.876900133732966"},"readme":"# PostCSS Color Mix 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-color-mix-function --save-dev`\n\n[PostCSS Color Mix Function] lets you use the `color-mix()` function following the [CSS Color 5 Specification].\n\n```css\n.purple_plum {\n\tcolor: color-mix(in lch, purple 50%, plum 50%);\n}\n\n/* becomes */\n\n.purple_plum {\n\tcolor: rgb(175, 92, 174);\n}\n```\n\n> [!NOTE]\n> We can not dynamically resolve `var()` arguments in `color-mix()`, only static values will work.\n\n## Usage\n\nAdd [PostCSS Color Mix Function] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-color-mix-function --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssColorMixFunction = require('@csstools/postcss-color-mix-function');\n\npostcss([\n\tpostcssColorMixFunction(/* 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\npostcssColorMixFunction({ preserve: true })\n```\n\n```css\n.purple_plum {\n\tcolor: color-mix(in lch, purple 50%, plum 50%);\n}\n\n/* becomes */\n\n.purple_plum {\n\tcolor: rgb(175, 92, 174);\n\tcolor: color-mix(in lch, purple 50%, plum 50%);\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/#color-mix\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-color-mix-function\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Color Mix Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function\n[CSS Color 5 Specification]: https://www.w3.org/TR/css-color-5/#color-mix\n","publish_time":1790835768383,"_cnpm_publish_time":1790835768383,"dist-tags":{"latest":"4.0.17"}}