Skip to main content
Yoummday Light Light Dark System

Color Tokens

Color tokens help maintain consistent use of color throughout your app. Shoelace provides palettes for theme colors and primitives that you can use as a foundation for your design system.

Color tokens are referenced using the --sl-color-{name}-{n} CSS custom property, where {name} is the name of the palette and {n} is the numeric value of the desired swatch.

Theme Tokens

Theme tokens give you a semantic way to reference colors in your app. The primary palette is typically based on a brand color, whereas success, neutral, warning, and danger are used to visualize actions that correspond to their respective meanings.

Primary
--sl-color-primary-{n}
50
100
200
300
400
500
600
700
800
900
950
Success
--sl-color-success-{n}
50
100
200
300
400
500
600
700
800
900
950
Warning
--sl-color-warning-{n}
50
100
200
300
400
500
600
700
800
900
950
Danger
--sl-color-danger-{n}
50
100
200
300
400
500
600
700
800
900
950
Neutral
--sl-color-neutral-{n}
50
100
200
300
400
500
600
700
800
900
950
Black & White
--sl-color-neutral-{n}
0
1000