Available formats
Permalink to "Available formats"Bolt design tokens are provided in a limited set of formats.
- Sass
- Using Sass tokens
- CSS Custom Properties
- Using CSS custom properties
Design tokens are the basic construction pieces of a design system such as colors, spacing, and typography. They support visual consistency across Bolt components, patterns, layouts, and the Nationwide brand.
Bolt design tokens are provided in a limited set of formats.
@use syntax, as demonstrated below.@use anywhere you need them, without introducing any side-effects.If you're interested in incorporating Bolt's design tokens into a third-party front end framework such as Angular Material, please refer to Bolt Adapters documentation.
@use "path/to/bolt/tokens" as Bolt;
.foobar {
background: Bolt.$theme-background;
border: 1px solid Bolt.$theme-outline;
color: Bolt.$theme-onBackground;
}
Consumption via Sass @import is not recommended.
@import has been deprecated for removal in Sass 2.0Bolt provides many runtime-fluid CSS custom properties whose values adapt to various configurations and styling contexts.
Unless explicitly documented, CSS custom properties should not be overridden in downstream project styles.
@use "path/to/bolt/css";
body {
background: var(--bolt-theme-surface);
color: var(--bolt-theme-onSurface);
}
.custom-link {
color: var(--bolt-context-link);
}
Only those tokens that are documented below are supported by Bolt for consumer use.
There are numerous undocumented tokens that may be available, but aren't meant for public consumption.
Spacing tokens are best applied to properties that configure white space and relative positioning.
| Token | Details | |
|---|---|---|
3xs
3XS white space |
||
2xs
2XS white space |
||
xs
XS white space |
||
sm
SM white space |
||
md
MD white space |
||
lg
LG white space |
||
xl
XL white space |
||
2xl
2XL white space |
||
3xl
3XL white space |
||
4xl
4XL white space |
Breakpoint tokens define the smallest viewport width for a given responsive breakpoint.
| Token | Details |
|---|---|
2xs
Extra extra small (2XS) screens (e.g., wearables, smart phones in portrait orientation, etc.) |
|
xs
Extra small screens (e.g., smart phones) |
|
sm
Small screens (e.g., smart phones in landscape) |
|
md
Medium screens (tablets, high-end smart phones in landscape, etc.) |
|
lg
Large screens (laptops, desktop monitors, tablets in landscape, etc.) |
|
xl
HD displays (720p) |
|
2xl
Wide HD displays |
|
3xl
Full HD displays (1080p) |
Radius tokens are best applied to round over sharp corners.
| Token | Details | |
|---|---|---|
default
default border radius |
Elevation tokens are provided for logical z-index configuration (larger values placed closer than smaller values).
Elevation tokens do not apply nor correlate to any drop shadow implementations.
| Token | Details |
|---|---|
low
Z-index value for minimal elevation |
|
med
Z-index value for non-modal elevation |
|
sticky
Z-index value for sticky content |
|
overlay
Z-index value for overlay container |
|
overlayContent
Z-index value for overlay content |
|
top
Z-index value for highest elevation |
Timing tokens are best applied as the duration configuration of animations, transitions, and other movement-based interactions.
| Token | Details | |
|---|---|---|
slowest
slowest time duration |
||
slow
slow time duration |
||
default
default time duration |
||
fast
fast time duration |
Typography tokens define the characteristics of text-based content.
Typography tokens are NOT intended for general consumption.
Please see the Typography style guide for more information on usage and available Typography CSS utilities.
Bolt's color tokens include two dynamic sets of colors and one static set, for use in different scenarios.
Color tokens can be used anywhere a CSS color is applicable.
As of Bolt 7.11.0, Bolt's colors include updated values and an expanded palette in alignment with Nationwide Brand updates.
For more information, see contextual themes.
Background color for a contextual container
Accessible foreground color for use on a context.surface background
Lower-emphasis, accessible foreground color for use on a context.surface background
Stroke color used for important boundaries within a contextual container
Stroke color used for decorative elements within a contextual container
Default color used to indicate that an element within a contextual container has interactive focus
Default foreground color for hyperlinks within a contextual container
Generic accent color for use within a contextual container
Background color for emphasized interaction states of context.accent themed elements within a contextual container
Background color for strongly emphasized interaction states of context.accent themed elements within a contextual container
Accessible foreground color for use on any context.accent themed background within a contextual container
For more information, see global theme.
Sass tokens have a static value and are forever coupled to the default theme.
CSS tokens must be used to support non-default themes like dark mode.
Default background color of an application
Container background color with lowest emphasis against theme.surface token
Container background color with low emphasis against theme.surface token
Container background color with medium emphasis against theme.surface token
Container background color with high emphasis against theme.surface token
Container background color with highest emphasis against theme.surface token
Darkest surface color
2nd-darkest surface color
Surface color midway between surfaceDimmest and surfaceBrightest
2nd-brightest surface color
Brightest surface color
Default background color for inputs
Input background color for emphasized interaction states
Input background color for strongly emphasized interaction states
Accessible foreground color for use on theme-based surfaces
Lower-emphasis, accessible foreground color for use on theme-based surfaces
Background color that highly contrasts against theme.surface token
Accessible foreground color for use on theme.inverseSurface background
Default stroke color used for important boundaries, like a text field outline
Default stroke color used for decorative elements, like dividers
Default color used to indicate that an element has interactive focus
Color used for drop shadows applied to elevated elements like tooltips and menus
Background color used for full-page, semi-transparent overlays arranged between page content and modal containers
Default scrim opacity
Default foreground color for hyperlinks
Generic accent color
Background color for emphasized interaction states of theme.accent themed elements
Background color for strongly emphasized interaction states of theme.accent themed elements
Accessible foreground color for use on any theme.accent themed background
Primary brand accent color
Background color for emphasized interaction states of theme.primary themed elements
Background color for strongly emphasized interaction states of theme.primary themed elements
Color for actionable elements on a theme.inverseSurface background
Accessible foreground color for use on a theme.primary themed background
Background color for a theme.primary themed container
Accessible foreground color for use on a theme.primaryContainer background
Secondary brand accent color
Background color for emphasized interaction states of theme.secondary themed elements
Background color for strongly emphasized interaction states of theme.secondary themed elements
Accessible foreground color for use on a theme.secondary themed background
Background color for a theme.secondary themed container
Accessible foreground color for use on a theme.secondaryContainer background
Tertiary brand accent color
Background color for emphasized interaction states of theme.tertiary themed elements
Background color for strongly emphasized interaction states of theme.tertiary themed elements
Accessible foreground color for use on a theme.tertiary themed background
Background color for a theme.tertiary themed container
Accessible foreground color for use on a theme.tertiaryContainer background
Error status color
Accessible foreground color for use on a theme.error background
Background color for a theme.error themed container
Accessible foreground color for use on a theme.errorContainer background
Warning status color
Accessible foreground color for use on a theme.warning background
Background color for a theme.warning themed container
Accessible foreground color for use on a theme.warningContainer background
Info status color
Accessible foreground color for use on a theme.info background
Background color for a theme.info themed container
Accessible foreground color for use on a theme.infoContainer background
Success status color
Accessible foreground color for use on a theme.success background
Background color for a theme.success themed container
Accessible foreground color for use on a theme.successContainer background
Brand palette tokens represent brand-compliant colors for use in Bolt-based UIs.
Palette / Vibrant Blue
Accessible foreground color on a palette.vibrantBlue background
Palette / Dark Vibrant Blue
Accessible foreground color on a palette.darkVibrantBlue background
Palette / White
Accessible foreground color on a palette.white background
Palette / N Crop Blue
Accessible foreground color on a palette.nCropBlue background
Palette / Dark Blue
Accessible foreground color on a palette.darkBlue background
Palette / Medium Blue
Accessible foreground color on a palette.mediumBlue background
Palette / Light Blue
Accessible foreground color on a palette.lightBlue background
Palette / Ultralight Blue
Accessible foreground color on a palette.ultralightBlue background
Palette / Mint
Accessible foreground color on a palette.mint background
Palette / Dark Mint
Accessible foreground color on a palette.darkMint background
Palette / Sea Blue
Accessible foreground color on a palette.seaBlue background
Palette / Dark Sea Blue
Accessible foreground color on a palette.darkSeaBlue background
Palette / Lavender
Accessible foreground color on a palette.lavender background
Palette / Deep Purple
Accessible foreground color on a palette.deepPurple background
Palette / Dark Green
Accessible foreground color on a palette.darkGreen background
Palette / Green
Accessible foreground color on a palette.green background
Palette / Sunburst Orange
Accessible foreground color on a palette.sunburstOrange background
Palette / Burnt Orange
Accessible foreground color on a palette.burntOrange background
Palette / Lemon Yellow
Accessible foreground color on a palette.lemonYellow background
Palette / Wheat
Accessible foreground color on a palette.wheat background
Palette / Charcoal
Accessible foreground color on a palette.charcoal background
Palette / Ultralight Gray
Accessible foreground color on a palette.ultralightGray background
Palette / Light Gray
Accessible foreground color on a palette.lightGray background
Palette / Medium Gray
Accessible foreground color on a palette.mediumGray background
Palette / Dark Gray
Accessible foreground color on a palette.darkGray background
Palette / Medium Fossil
Accessible foreground color on a palette.mediumFossil background
Palette / Light Fossil
Accessible foreground color on a palette.lightFossil background
Palette / Ultralight Fossil
Accessible foreground color on a palette.ultralightFossil background
Palette / Dark Fossil
Accessible foreground color on a palette.darkFossil background
Deprecated tokens will be removed in a future major release of Bolt.
Palette / Cherry Red
Accessible foreground color on a palette.cherryRed background
Palette / Mustard
Accessible foreground color on a palette.mustard background
Palette / Pale Gray
Accessible foreground color on a palette.paleGray background
Palette / Fossil
Accessible foreground color on a palette.fossil background