Gathering detailed insights and metrics for postcss-color-gray
Gathering detailed insights and metrics for postcss-color-gray
Gathering detailed insights and metrics for postcss-color-gray
Gathering detailed insights and metrics for postcss-color-gray
npm install postcss-color-gray
93.5
Supply Chain
98.3
Quality
79.7
Maintenance
50
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
27 Stars
36 Commits
9 Forks
8 Watching
1 Branches
21 Contributors
Updated on 23 Aug 2023
JavaScript (85.43%)
CSS (14.57%)
Cumulative downloads
Total Downloads
Last day
-8.5%
287,027
Compared to previous day
Last week
0.8%
1,667,280
Compared to previous week
Last month
1.5%
7,165,635
Compared to previous month
Last year
-35.1%
93,626,608
Compared to previous year
PostCSS Gray lets you use the gray()
color function in CSS, following the outdated version of CSS Color Module Level 4 specification (05 November 2019).
⚠️ gray()
has been removed from Color Module Level 4 specification.
1body { 2 background-color: gray(100); 3 color: gray(0 / 90%); 4} 5 6/* becomes */ 7 8body { 9 background-color: rgb(255,255,255); 10 color: rgba(0,0,0,.9); 11}
Add PostCSS Gray to your project:
1npm install postcss postcss-color-gray --save-dev
Use PostCSS Gray to process your CSS:
1import postcssGray from 'postcss-color-gray'; 2 3postcssGray.process(YOUR_CSS /*, processOptions, pluginOptions */);
Or use it as a PostCSS plugin:
1import postcss from 'postcss'; 2import postcssGray from 'postcss-color-gray'; 3 4postcss([ 5 postcssGray(/* pluginOptions */) 6]).process(YOUR_CSS /*, processOptions */);
PostCSS Gray runs in all Node environments, with special instructions for:
Node | Webpack | Create React App | Gulp | Grunt |
---|
The preserve
option determines whether the original gray()
function should
be preserved or replaced. By default, the gray()
function is replaced.
By setting preserve
to true
, the original gray()
function is preserved.
1postcssGray({ preserve: true });
1body { 2 background-color: gray(100); 3 color: gray(0 / 90%); 4} 5 6/* becomes */ 7 8body { 9 background-color: gray(100); 10 background-color: rgb(255,255,255); 11 color: gray(0 / 90%); 12 color: rgba(0,0,0,.9); 13}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 6/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
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