Design tokens are visual atoms that represent style values ranging from colors, size, spacing, and radius to be used across platforms to create consistency and cohesion.
On this page
Design tokens are a set of css variables provided by the DLS stylesheet for use in your project. They are used to ensure consistency in design across all digital services, as well as to enable features like surfaces and dark mode.
Design tokens that are intended to be used directly have equivalent css utility classes in the DLS stylesheet to make them easy to drop into your project. For example, to apply the example-design-token design token to an element, you can use the example-design-token utility class like so:
<div className="example-design-token">
This element has the example design token applied.
</div>
Additional methods for consuming design tokens directly, rather than via utility classes, will be provided in the near future.
The DLS stylesheet provides a large number of css variables to power DLS v7. However, only a subset of these are intended to be used directly in your project. The table below lists the design tokens that are currently available for use in your project, along with their default values in the foreground surface.
| Utility Class | Default Color, Foreground Surface |
|---|---|
.color-text-emphasis | #262626 |
.color-text-regular | #3d3d3d |
.color-text-subtle | #595959 |
.color-text-brand | #006fcf |
.color-text-brand-alt | #00175a |
.color-text-link | #0066be |
.color-border-none | transparent |
.color-border-emphasis | #8c8c8c |
.color-border-regular | #bdbdbd |
.color-border-subtle | #e0e0e0 |
.color-border-brand | #006fcf |
.color-border-brand-alt | #00175a |
.color-surface-bg | #ffffff |
.color-graphic-brand-logo | #006fcf |
.color-graphic-brand-logo-blue-box | #006fcf |
.color-graphic-brand-logo-blue-box-text | #ffffff |
.color-graphic-brand | #006fcf |
.color-graphic-emphasis | #262626 |
.color-graphic-regular | #3d3d3d |
.color-graphic-subtle | #595959 |
.color-graphic-brand-alt | #00175a |
.color-graphic-data-viz-blue-light | #148eff |
.color-graphic-data-viz-blue-medium | #006fd6 |
.color-graphic-data-viz-blue-dark | #002d85 |
.color-graphic-data-viz-green-light | #2e8f84 |
.color-graphic-data-viz-green-medium | #005e5e |
.color-graphic-data-viz-green-dark | #003838 |
.color-graphic-data-viz-indigo-light | #3e52b4 |
.color-graphic-data-viz-indigo-medium | #1b358b |
.color-graphic-data-viz-indigo-dark | #140052 |
.color-graphic-data-viz-olive-light | #879400 |
.color-graphic-data-viz-olive-medium | #666e1b |
.color-graphic-data-viz-olive-dark | #383d00 |
.color-graphic-data-viz-orange-light | #eb5928 |
.color-graphic-data-viz-orange-medium | #b5370d |
.color-graphic-data-viz-orange-dark | #661a00 |
.color-graphic-data-viz-pink-light | #c0438c |
.color-graphic-data-viz-pink-medium | #9d1c67 |
.color-graphic-data-viz-pink-dark | #6b003e |
.color-status-text-information | #006fcf |
.color-status-text-success | #00804a |
.color-status-text-caution | #b5530d |
.color-status-text-critical | #b41601 |
.color-status-text-neutral | #737373 |
.color-status-graphic-information | #006fcf |
.color-status-graphic-success | #00804a |
.color-status-graphic-caution | #b5530d |
.color-status-graphic-critical | #b41601 |
.color-status-graphic-neutral | #737373 |
Connect with the DLS Team on Slack or by email.
Check out additional resources.