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 $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:
$colors: (
'blue': (
10: #edf4ff,
// ...
)
);
JavaScript
For JavaScript, you can import and use this module by doing the following in
your code:
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! 👀
This package uses IBM Telemetry to collect metrics data. By installing this
package as a dependency you are agreeing to telemetry collection. To opt out,
see
Opting out of IBM Telemetry data collection.
For more information on the data being collected, please see the
IBM Telemetry documentation.
Colors for digital and software products using the Carbon Design System
The npm package @carbon/colors receives a total of 96,613 weekly downloads. As such, @carbon/colors popularity was classified as popular.
We found that @carbon/colors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 9 open source maintainers collaborating on the project.
Package last updated on 09 Sep 2024
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.