Color Palette

This theme uses CSS cascading variables.

The color palette uses a three-color combination and allow to set the primary color hue angle and the left and right secondary colors hue angle (respectively adding and subtractinf from the primary hue angle).

The hue angle is based on the hsl color space but the color palette is generated using oklch, this make it easier to select a color hue from the HSL while still taking advantage of the benefits that OKLCH provides.

Color Harmonies

It’s possible to generate the color palette for a variety of Color Harmonies simply by modifying the variable --secondary-colors-amgle.

The default palette uses the triadic color scheme (secondary colors angle variable named --secondary-colors-amgle set to 120deg).

It’s possible to invert secondary left and secondary right by applying a simple formula.

Given the --secondary-colors-amgle angle a, we can use the formula a + 2 x (180deg - a) to invert secondary left and secondary right.

For example, whith --secondary-colors-amgle set to 120deg, to invert left and right we would use 240deg.

Example:

:root {
  /* 120deg + 2 x (180deg - 120deg) = 240deg */
  --colors-secondary-hue-angle: 240deg;
}

Analogous

Preferred values:

Best values:

Example:

:root {
  --colors-secondary-hue-angle: 30deg;
}

Triadic

Values:

Example:

:root {
  --colors-secondary-hue-angle: 120deg;
}

Split-Complementary

Preferred values:

Best values:

Example:

:root {
  --colors-secondary-hue-angle: 160deg;
}

Complementary

We can use 180 degrees to achieve a complementary color scheme: this way, the left and right secondary colors will have the same angle, thus generating the same color palette.

Example:

:root {
  --colors-secondary-hue-angle: 180deg;
}

Base Palette

namemainlightestlighterlightmedium-lightmediummedium-darkdarkdarkerdarkest
primary
secondary-left
secondary-right
warning
success
error
neutral
The CSS colors variables are defined as --palette-[row name]-[column name], for example --palette-secondary-left-medium-dark.

Neutral Palette Extended

namecolor
neutral0
neutral5
neutral10
neutral15
neutral20
neutral25
neutral30
neutral35
neutral40
neutral50
neutral60
neutral65
neutral70
neutral75
neutral80
neutral85
neutral90
neutral95
neutral100
The CSS colors variables are defined as --palette-[row name], for example --palette-neutral0.