Gathering detailed insights and metrics for postcss-color-rgba-fallback
Gathering detailed insights and metrics for postcss-color-rgba-fallback
Gathering detailed insights and metrics for postcss-color-rgba-fallback
Gathering detailed insights and metrics for postcss-color-rgba-fallback
PostCSS plugin to transform rgba() to hexadecimal.
npm install postcss-color-rgba-fallback
Typescript
Module System
Node Version
NPM Version
98.2
Supply Chain
98.4
Quality
79.4
Maintenance
50
Vulnerability
100
License
JavaScript (100%)
Total Downloads
94,036,693
Last Day
8,054
Last Week
129,997
Last Month
565,180
Last Year
7,404,534
MIT License
50 Stars
42 Commits
8 Forks
9 Watchers
5 Branches
20 Contributors
Updated on Jan 25, 2023
Minified
Minified + Gzipped
Latest Version
4.0.0
Package Id
postcss-color-rgba-fallback@4.0.0
Size
3.40 kB
NPM Version
6.12.1
Node Version
12.13.1
Published on
Jan 22, 2020
Cumulative downloads
Total Downloads
Last Day
-11.9%
8,054
Compared to previous day
Last Week
-6.3%
129,997
Compared to previous week
Last Month
-1.7%
565,180
Compared to previous month
Last Year
-2.4%
7,404,534
Compared to previous year
3
4
PostCSS plugin to transform rgba() to hexadecimal.
1$ npm install postcss-color-rgba-fallback
1// dependencies 2var fs = require("fs") 3var postcss = require("postcss") 4var colorRgbaFallback = require("postcss-color-rgba-fallback") 5 6// css to be processed 7var css = fs.readFileSync("input.css", "utf8") 8 9// process css 10var output = postcss() 11 .use(colorRgbaFallback()) 12 .process(css) 13 .css
Using this input.css
:
1body { 2 background: rgba(153, 221, 153, 0.8); 3 border: solid 1px rgba(100,102,103,.3); 4} 5
you will get:
1body { 2 background: #99DD99; 3 background: rgba(153, 221, 153, 0.8); 4 border: solid 1px #646667; 5 border: solid 1px rgba(100,102,103,.3); 6}
postcss-color-rgba-fallback accepts options
properties
default: [ "background-color", "background", "color", "border", "border-color", "outline", "outline-color ]
Allows you to specify your whitelist of properties. This option enables adding a fallback for one or a properties list
oldie
default: false
Set to true to enable the option and to get fallback for ie8
backgroundColor
default: null
Allows you to specify a background color to use as a base alpha matte.
Instead of cutting off the alpha channel it will blend the foreground and background.
Expects an array of rgb values:
1 "backgroundColor": [255, 1, 1]
Checkout tests for more examples.
Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.
$ git clone https://github.com/postcss/postcss-color-rgba-fallback.git
$ git checkout -b patch-1
$ npm install
$ npm test
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 6/20 approved changesets -- score normalized to 3
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
Reason
23 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
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