Gathering detailed insights and metrics for @chancethedev/colors
Gathering detailed insights and metrics for @chancethedev/colors
npm install @chancethedev/colors
Typescript
Module System
Node Version
NPM Version
72.6
Supply Chain
98.4
Quality
74.8
Maintenance
100
Vulnerability
100
License
JavaScript (96.15%)
CSS (2.96%)
Shell (0.46%)
HTML (0.44%)
Total Downloads
792
Last Day
2
Last Week
2
Last Month
12
Last Year
84
18 Commits
1 Watching
11 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.3
Package Id
@chancethedev/colors@0.0.3
Unpacked Size
24.28 kB
Size
5.31 kB
File Count
8
NPM Version
6.4.1
Node Version
10.15.3
Cumulative downloads
Total Downloads
Last day
100%
2
Compared to previous day
Last week
-66.7%
2
Compared to previous week
Last month
33.3%
12
Compared to previous month
Last year
-39.1%
84
Compared to previous year
Colors for digital and software products using the chancethedev Design System. A fork of
@carbon/colors
.
TODO
You can use the @chancethedev/colors
module in your JavaScript, in addition to your Sass.
In Sass, you can import the files individual by doing:
1@import '@chancethedev/colors/scss/colors';
This file automatically includes the chancethedev--colors
mixin which initializes
all the color variables for the design system.
These color variables follow the naming convention: $chancethedev--<swatch>-<grade>
.
For example:
1$chancethedev--blue-50; 2$chancethedev--cool-gray-10; 3$chancethedev--black-100; 4$chancethedev--white-0;
You can also use the shorthand form of these colors by dropping the chancethedev--
namespace:
1$blue-50; 2$cool-gray-10; 3$black-100; 4$white-0;
Note: the shorthand variables require that you do not have any other conflicting variables in your setup. Namespaced variables are always preferred for this reason, unless you are confident that no collisions will occur.
If you would like you choose when these variables are defined, then you can call
the chancethedev--colors
mixin directly by importing the following file:
1@import '@chancethedev/colors/scss/mixins'; 2 3// ... 4@include chancethedev--colors();
Alongside the color variables detailed above, we also provide a map of colors so
that you can programmatically use these values. This map is called
$chancethedev--colors
and each key is the name of a swatch. The value of these
swatches is also a map, but each key is now the grade. In code, this looks like
the following:
1$chancethedev--colors: ( 2 'blue': ( 3 10: #edf4ff, 4 // ... 5 ) 6);
You can include this variable by including @chancethedev/colors/scss/colors
or
calling the chancethedev--colors()
mixin directly.
For JavaScript, you can import and use this module by doing the following in your code:
1// ESM 2import { black, blue, warmGray } from '@chancethedev/colors'; 3 4// CommonJS 5const { black, blue, warmGray } = require('@chancethedev/colors');
Each color swatch is exported as a variable, and each color name is also exported as an object that can be called by specifying grade, for example:
1black; 2blue[50]; // Using the `blue` object. 3warmGray100; // Using the `warmGray100` variable.
If you're looking for @chancethedev/colors
API documentation, check out:
We're always looking for contributors to help us fix bugs, build new features, or help us improve the project documentation. If you're interested, definitely check out our Contributing Guide! 👀
Licensed under the Apache 2.0 License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
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
119 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-03
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