Gathering detailed insights and metrics for a-css-loader_postcss-modules-values
Gathering detailed insights and metrics for a-css-loader_postcss-modules-values
Gathering detailed insights and metrics for a-css-loader_postcss-modules-values
Gathering detailed insights and metrics for a-css-loader_postcss-modules-values
Pass arbitrary constants between your module files
npm install a-css-loader_postcss-modules-values
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
203 Stars
107 Commits
18 Forks
7 Watchers
29 Branches
18 Contributors
Updated on Dec 26, 2023
Latest Version
1.2.2
Package Id
a-css-loader_postcss-modules-values@1.2.2
Size
6.09 kB
NPM Version
3.10.9
Node Version
7.0.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
Pass arbitrary values between your module files
1/* colors.css */ 2@value primary: #BF4040; 3@value secondary: #1F4F7F; 4 5.text-primary { 6 color: primary; 7} 8 9.text-secondary { 10 color: secondary; 11}
1/* breakpoints.css */ 2@value small: (max-width: 599px); 3@value medium: (min-width: 600px) and (max-width: 959px); 4@value large: (min-width: 960px);
1/* my-component.css */ 2/* alias paths for other values or composition */ 3@value colors: "./colors.css"; 4/* import multiple from a single file */ 5@value primary, secondary from colors; 6/* make local aliases to imported values */ 7@value small as bp-small, large as bp-large from "./breakpoints.css"; 8 9.header { 10 composes: text-primary from colors; 11 box-shadow: 0 0 10px secondary; 12} 13 14@media bp-small { 15 .header { 16 box-shadow: 0 0 4px secondary; 17 } 18} 19@media bp-large { 20 .header { 21 box-shadow: 0 0 20px secondary; 22 } 23}
If you are using Sass along with this PostCSS plugin, do not use the colon :
in your @value
definitions. It will cause Sass to crash.
Note also you can import multiple values at once but can only define one value per line.
1@value a: b, c: d; /* defines a as "b, c: d" */
See this PR for more background
ISC
Glen Maddern, 2015.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/21 approved changesets -- score normalized to 1
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
57 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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