Skip to main content
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 --sc-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
--sc-color-primary-{n}
50
100
200
300
400
500
600
700
800
900
950
Success
--sc-color-success-{n}
50
100
200
300
400
500
600
700
800
900
950
Warning
--sc-color-warning-{n}
50
100
200
300
400
500
600
700
800
900
950
Danger
--sc-color-danger-{n}
50
100
200
300
400
500
600
700
800
900
950
Neutral
--sc-color-neutral-{n}
50
100
200
300
400
500
600
700
800
900
950
Black & White
--sc-color-neutral-{n}
0
1000

Primitives

Additional palettes are provided in the form of color primitives. Use these when you need arbitrary colors that don’t have semantic meaning. Color primitives are derived from the fantastic Tailwind color palette.

Gray
--sc-color-gray-{n}
50
100
200
300
400
500
600
700
800
900
950
Red
--sc-color-red-{n}
50
100
200
300
400
500
600
700
800
900
950
Orange
--sc-color-orange-{n}
50
100
200
300
400
500
600
700
800
900
950
Amber
--sc-color-amber-{n}
50
100
200
300
400
500
600
700
800
900
950
Yellow
--sc-color-yellow-{n}
50
100
200
300
400
500
600
700
800
900
950
Lime
--sc-color-lime-{n}
50
100
200
300
400
500
600
700
800
900
950
Green
--sc-color-green-{n}
50
100
200
300
400
500
600
700
800
900
950
Emerald
--sc-color-emerald-{n}
50
100
200
300
400
500
600
700
800
900
950
Teal
--sc-color-teal-{n}
50
100
200
300
400
500
600
700
800
900
950
Cyan
--sc-color-cyan-{n}
50
100
200
300
400
500
600
700
800
900
950
Sky
--sc-color-sky-{n}
50
100
200
300
400
500
600
700
800
900
950
Blue
--sc-color-blue-{n}
50
100
200
300
400
500
600
700
800
900
950
Indigo
--sc-color-indigo-{n}
50
100
200
300
400
500
600
700
800
900
950
Violet
--sc-color-violet-{n}
50
100
200
300
400
500
600
700
800
900
950
Purple
--sc-color-purple-{n}
50
100
200
300
400
500
600
700
800
900
950
Fuchsia
--sc-color-fuchsia-{n}
50
100
200
300
400
500
600
700
800
900
950
Pink
--sc-color-pink-{n}
50
100
200
300
400
500
600
700
800
900
950
Rose
--sc-color-rose-{n}
50
100
200
300
400
500
600
700
800
900
950