A color palette gives you a full spectrum of colors to use in your project, as
color design tokens. Cornerstone ships Cru’s, and applies it for you.
It defines nineteen hues, each with a scale of 11 tints from 05 (darkest) to 95 (lightest). The tints
are not picked by eye: each step’s lightness is solved for a WCAG luminance target, so the distance between
two steps predicts their contrast ratio — 40 steps apart is 3
, 50 is 4.5, and 60 is 7. Pair a hue
with a theme and variant colors to style the whole library.
Unlike the reference palette, this one applies at the document root rather than under a cs-palette-*
class — it is the palette the library ships with, not one you switch on. The reference palette is still
there, because themes/default.css imports it, but a theme applies its own palette, so there is
nothing for you to choose between. The Awesome and Shoelace palettes this library was forked alongside have
been removed.
On every scale below, one step is bold: that hue’s key step, which is what the bare --cs-color-{hue}
token resolves to and the colour as it appears in Cru’s brand guidelines. The generator writes each brand
colour verbatim at the step whose luminance it already has, and makes that the key. Hover a swatch for its
token and value; click it to copy the token.
Lemon
--cs-color-lemon-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Yellow
--cs-color-yellow-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Orange
--cs-color-orange-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Vermilion
--cs-color-vermilion-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Rose
--cs-color-rose-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Pink
--cs-color-pink-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Cerise
--cs-color-cerise-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Ruby
--cs-color-ruby-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Sky
--cs-color-sky-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Cyan
--cs-color-cyan-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Turquoise
--cs-color-turquoise-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Navy
--cs-color-navy-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Mint
--cs-color-mint-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Green
--cs-color-green-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Moss
--cs-color-moss-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Olive-drab
--cs-color-olive-drab-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Gray
--cs-color-gray-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Graphite
--cs-color-graphite-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Purple
--cs-color-purple-*
95, the key step
90, the key step
80, the key step
70, the key step
60, the key step
50, the key step
40, the key step
30, the key step
20, the key step
10, the key step
05, the key step
Using This Palette
npmSelf-Hosted
After installing @cruglobal/cornerstone-components, import the palette's stylesheet:
Importing it is all that is needed — this palette applies at the document root rather than under a class.
Styling with Palette Colors
Once a palette is loaded, you can reach for any of its hue and tint tokens in your own CSS. Pair a hue’s
core color (--cs-color-{hue}) with its matching on color
(--cs-color-{hue}-on) to keep text and icons readable on top of it:
Building with other tints? The Color tokens reference lists every tint and semantic
variant — pair them across the scale and you’ll hit WCAG contrast ratios without doing the math.