{"_id":"@csstools/postcss-color-mix-variadic-function-arguments@2.0.15","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"38a6eaefdcd17bab080f161dd5c7d35c4fb48864","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-color-mix-variadic-function-arguments/download/@csstools/postcss-color-mix-variadic-function-arguments-2.0.15.tgz","fileCount":6,"integrity":"sha512-y9Po50/Oa6VZ8+F2MSPgmjUyvHjc8BJo7JMpGx84mKw6VjXavD01KwfXy2g9cgd9CujyWjQHZZhO6yv9ymMO4w==","signatures":[{"sig":"MEMCIH8+MHDmLZILpYR+lFg6QpeFhkVsuAuWsso9/Er+qyYOAh9baJJX2rnER5tuG0o+SlPk/8KzE3bI1/6ba/BMdbpE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCxI6/Myi9CHElhZ0aHSH7IZXu5zoqDvsPTZ1uquHzs8AIgUu1tMwglx3jfJS4Ty93/9cYDgAta1fLFYCShwhJ6klI="}],"unpackedSize":8083,"size":3211,"noattachment":false,"key":"/@csstools/postcss-color-mix-variadic-function-arguments/-/@csstools/postcss-color-mix-variadic-function-arguments-2.0.15.tgz"},"name":"@csstools/postcss-color-mix-variadic-function-arguments","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":"4d03fff2a720de2db52f40193d732221db87aef6","license":"MIT-0","scripts":{},"version":"2.0.15","_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-variadic-function-arguments#readme","keywords":["color","color-mix","css","function","interpolation","postcss","postcss-plugin","syntax","variadic"],"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-color-mix-variadic-function-arguments"},"_npmVersion":"11.13.0","description":"Mix any number of colors with 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.6","@csstools/css-parser-algorithms":"^4.0.2","@csstools/postcss-progressive-custom-properties":"^5.1.4"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-color-mix-variadic-function-arguments_2.0.15_1790956673997_0.43318631632261706"},"readme":"# PostCSS Color Mix Variadic Function Arguments [<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-variadic-function-arguments --save-dev`\n\n[PostCSS Color Mix Variadic Function Arguments] lets you use the `color-mix()` function with any number of arguments following the [CSS Color 5 Specification].\n\n```css\n.red {\n\tcolor: color-mix(in srgb, red);\n}\n\n.grey {\n\tcolor: color-mix(in srgb, red, lime, blue);\n}\n\n/* becomes */\n\n.red {\n\tcolor: rgb(255, 0, 0);\n}\n\n.grey {\n\tcolor: rgb(85, 85, 85);\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 Variadic Function Arguments] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-color-mix-variadic-function-arguments --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssColorMixVariadicFunctionArguments = require('@csstools/postcss-color-mix-variadic-function-arguments');\n\npostcss([\n\tpostcssColorMixVariadicFunctionArguments(/* 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\npostcssColorMixVariadicFunctionArguments({ preserve: true })\n```\n\n```css\n.red {\n\tcolor: color-mix(in srgb, red);\n}\n\n.grey {\n\tcolor: color-mix(in srgb, red, lime, blue);\n}\n\n/* becomes */\n\n.red {\n\tcolor: rgb(255, 0, 0);\n\tcolor: color-mix(in srgb, red);\n}\n\n.grey {\n\tcolor: rgb(85, 85, 85);\n\tcolor: color-mix(in srgb, red, lime, blue);\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-variadic-function-arguments\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-color-mix-variadic-function-arguments\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Color Mix Variadic Function Arguments]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-variadic-function-arguments\n[CSS Color 5 Specification]: https://www.w3.org/TR/css-color-5/#color-mix\n","publish_time":1790956674094,"_cnpm_publish_time":1790956674094,"dist-tags":{"latest":"2.0.17"}}