Colors

Ten palettes, each with 11 shades and a set of named roles. Click a swatch below to copy its variable.

Use a color

Code
.promo {
  background: var(--leverui-colors-blue-subtle);
  color: var(--leverui-colors-blue-fg);
}

A shade, such as blue-500, is the same in light and dark mode. A role, such as blue-subtle, changes with the color mode.

In JavaScript helpers such as useChart, the same shade is written blue.500.

Color a component

Code
<Button colorPalette="blue">Save</Button>

colorPalette takes any palette name. The full list of variables is in the colors reference.

Click a swatch to copy its variable.

Shades

gray
red
orange
yellow
green
teal
blue
cyan
purple
pink

Roles

The same variable names in each color mode. Use roles, not shades, for anything that should follow dark mode.

Light

gray
red
orange
yellow
green
teal
blue
cyan
purple
pink
Background
Text
Border

Dark

gray
red
orange
yellow
green
teal
blue
cyan
purple
pink
Background
Text
Border

See-through black and white

Black
White