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:
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!
Color values are defined in src/dtcg/colors.json
using the DTCG token format. This is the
single source of truth for the package — do not edit generated files
directly.
The following files are generated at build time by Style Dictionary and should
not be hand-edited:
This package uses IBM Telemetry to collect de-identified and anonymized 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.