
Product
Socket Brings Supply Chain Security to skills.sh
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.
@csstools/postcss-color-mix-variadic-function-arguments
Advanced tools
Mix any number of colors with the color-mix function in CSS
npm install @csstools/postcss-color-mix-variadic-function-arguments --save-dev
PostCSS Color Mix Variadic Function Arguments lets you use the color-mix() function with any number of arguments following the CSS Color 5 Specification.
.red {
color: color-mix(in srgb, red);
}
.grey {
color: color-mix(in srgb, red, lime, blue);
}
/* becomes */
.red {
color: rgb(255, 0, 0);
}
.grey {
color: rgb(85, 85, 85);
}
[!NOTE] We can not dynamically resolve
var()arguments incolor-mix(), only static values will work.
Add PostCSS Color Mix Variadic Function Arguments to your project:
npm install postcss @csstools/postcss-color-mix-variadic-function-arguments --save-dev
Use it as a PostCSS plugin:
const postcss = require('postcss');
const postcssColorMixVariadicFunctionArguments = require('@csstools/postcss-color-mix-variadic-function-arguments');
postcss([
postcssColorMixVariadicFunctionArguments(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);
The preserve option determines whether the original notation
is preserved. By default, it is not preserved.
postcssColorMixVariadicFunctionArguments({ preserve: true })
.red {
color: color-mix(in srgb, red);
}
.grey {
color: color-mix(in srgb, red, lime, blue);
}
/* becomes */
.red {
color: rgb(255, 0, 0);
color: color-mix(in srgb, red);
}
.grey {
color: rgb(85, 85, 85);
color: color-mix(in srgb, red, lime, blue);
}
FAQs
Mix any number of colors with the color-mix function in CSS
The npm package @csstools/postcss-color-mix-variadic-function-arguments receives a total of 1,042,818 weekly downloads. As such, @csstools/postcss-color-mix-variadic-function-arguments popularity was classified as popular.
We found that @csstools/postcss-color-mix-variadic-function-arguments demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.