
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
@csstools/postcss-color-mix-function
Advanced tools
npm install @csstools/postcss-color-mix-function --save-dev
PostCSS Color Mix Function lets you use the color-mix() function following the CSS Color 5 Specification.
.purple_plum {
color: color-mix(in lch, purple 50%, plum 50%);
}
/* becomes */
.purple_plum {
color: rgb(175, 92, 174);
}
[!NOTE] We can not dynamically resolve
var()arguments incolor-mix(), only static values will work.
Add PostCSS Color Mix Function to your project:
npm install postcss @csstools/postcss-color-mix-function --save-dev
Use it as a PostCSS plugin:
const postcss = require('postcss');
const postcssColorMixFunction = require('@csstools/postcss-color-mix-function');
postcss([
postcssColorMixFunction(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);
The preserve option determines whether the original notation
is preserved. By default, it is not preserved.
postcssColorMixFunction({ preserve: true })
.purple_plum {
color: color-mix(in lch, purple 50%, plum 50%);
}
/* becomes */
.purple_plum {
color: rgb(175, 92, 174);
color: color-mix(in lch, purple 50%, plum 50%);
}
The `postcss-color-function` package allows you to use color functions like `color()` in your CSS. It provides similar functionality to `@csstools/postcss-color-mix-function` but focuses on a broader range of color manipulations, not just mixing.
The `postcss-preset-env` package includes a variety of modern CSS features, including color manipulation functions. It is more comprehensive than `@csstools/postcss-color-mix-function` as it aims to polyfill many CSS features, not just color mixing.
The `postcss-advanced-variables` package allows you to use Sass-like variables and functions in your CSS, including color functions. It provides a broader set of features for CSS preprocessing compared to the more focused `@csstools/postcss-color-mix-function`.
FAQs
Use the color-mix function in CSS
The npm package @csstools/postcss-color-mix-function receives a total of 2,110,850 weekly downloads. As such, @csstools/postcss-color-mix-function popularity was classified as popular.
We found that @csstools/postcss-color-mix-function 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.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.