Gathering detailed insights and metrics for @csstools/postcss-unset-value
Gathering detailed insights and metrics for @csstools/postcss-unset-value
Gathering detailed insights and metrics for @csstools/postcss-unset-value
Gathering detailed insights and metrics for @csstools/postcss-unset-value
npm install @csstools/postcss-unset-value
Typescript
Module System
Min. Node Version
Node Version
NPM Version
98.7
Supply Chain
100
Quality
80.2
Maintenance
100
Vulnerability
100
License
CSS (43.36%)
JavaScript (30.33%)
TypeScript (22.68%)
HTML (3.06%)
Nunjucks (0.48%)
Shell (0.1%)
Total Downloads
504,277,152
Last Day
742,512
Last Week
4,056,316
Last Month
17,588,267
Last Year
196,415,192
MIT-0 License
960 Stars
4,266 Commits
75 Forks
9 Watchers
4 Branches
130 Contributors
Updated on May 09, 2025
Minified
Minified + Gzipped
Latest Version
4.0.0
Package Id
@csstools/postcss-unset-value@4.0.0
Unpacked Size
19.65 kB
Size
4.82 kB
File Count
7
NPM Version
10.7.0
Node Version
22.1.0
Published on
Aug 03, 2024
Cumulative downloads
Total Downloads
1
PostCSS Unset Value lets you use the unset keyword, following the CSS Cascading and Inheritance specification.
1.color { 2 color: unset; 3} 4 5.border-color { 6 border-color: unset; 7} 8 9.margin { 10 margin: unset; 11} 12 13 14/* becomes */ 15.color { 16 color: inherit; 17} 18 19.border-color { 20 border-color: initial; 21} 22 23.margin { 24 margin: initial; 25}
Add PostCSS Unset Value to your project:
1npm install postcss @csstools/postcss-unset-value --save-dev
Use it as a PostCSS plugin:
1const postcss = require('postcss'); 2const postcssUnsetValue = require('@csstools/postcss-unset-value'); 3 4postcss([ 5 postcssUnsetValue(/* pluginOptions */) 6]).process(YOUR_CSS /*, processOptions */);
PostCSS Unset Value runs in all Node environments, with special instructions for:
Node | PostCSS CLI | Webpack | Gulp | Grunt |
---|
The preserve
option determines whether the original source
is preserved. By default, it is not preserved.
1postcssUnsetValue({ preserve: true })
1.color { 2 color: unset; 3} 4 5.border-color { 6 border-color: unset; 7} 8 9.margin { 10 margin: unset; 11} 12 13/* becomes */ 14 15.color { 16 color: inherit; 17 color: unset; 18} 19 20.border-color { 21 border-color: initial; 22 border-color: unset; 23} 24 25.margin { 26 margin: initial; 27 margin: unset; 28}
No vulnerabilities found.
Reason
30 commit(s) and 6 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/24 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-05-05
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 MoreLast Day
43.8%
742,512
Compared to previous day
Last Week
3.5%
4,056,316
Compared to previous week
Last Month
-6.2%
17,588,267
Compared to previous month
Last Year
7.3%
196,415,192
Compared to previous year