Gathering detailed insights and metrics for @csstools/postcss-color-mix-function
Gathering detailed insights and metrics for @csstools/postcss-color-mix-function
npm install @csstools/postcss-color-mix-function
Typescript
Module System
Min. Node Version
Node Version
NPM Version
CSS (43.37%)
JavaScript (30.22%)
TypeScript (22.76%)
HTML (3.06%)
Nunjucks (0.48%)
Shell (0.1%)
Total Downloads
72,030,743
Last Day
254,048
Last Week
1,142,370
Last Month
5,013,579
Last Year
50,320,037
931 Stars
4,162 Commits
73 Forks
11 Watching
5 Branches
131 Contributors
Minified
Minified + Gzipped
Latest Version
3.0.7
Package Id
@csstools/postcss-color-mix-function@3.0.7
Unpacked Size
8.54 kB
Size
3.29 kB
File Count
7
NPM Version
10.9.0
Node Version
22.12.0
Publised On
27 Dec 2024
Cumulative downloads
Total Downloads
Last day
-3.6%
254,048
Compared to previous day
Last week
-14.7%
1,142,370
Compared to previous week
Last month
11.1%
5,013,579
Compared to previous month
Last year
131.8%
50,320,037
Compared to previous year
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.
1.purple_plum { 2 color: color-mix(in lch, purple 50%, plum 50%); 3} 4 5/* becomes */ 6 7.purple_plum { 8 color: rgb(175, 92, 174); 9}
[!NOTE] We can not dynamically resolve
var()
arguments incolor-mix()
, only static values will work.
Add PostCSS Color Mix Function to your project:
1npm install postcss @csstools/postcss-color-mix-function --save-dev
Use it as a PostCSS plugin:
1const postcss = require('postcss'); 2const postcssColorMixFunction = require('@csstools/postcss-color-mix-function'); 3 4postcss([ 5 postcssColorMixFunction(/* pluginOptions */) 6]).process(YOUR_CSS /*, processOptions */);
The preserve
option determines whether the original notation
is preserved. By default, it is not preserved.
1postcssColorMixFunction({ preserve: true })
1.purple_plum { 2 color: color-mix(in lch, purple 50%, plum 50%); 3} 4 5/* becomes */ 6 7.purple_plum { 8 color: rgb(175, 92, 174); 9 color: color-mix(in lch, purple 50%, plum 50%); 10}
No vulnerabilities found.
Reason
30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
SAST tool detected but not run on all commits
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 0/23 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More