Colour Palette

Site Variable Colours

The design systems colour palette is derived from the following site variables. These can be overridden to change the appearance of the entire site.

Primary

oklch(0.43 0.0147 248.17)

--color-primary
Secondary

oklch(0.67 0.15 250)

--color-secondary
Tertiary

oklch(0.65 0.2 300)

--color-tertiary
Neutral

oklch(0.64 0 0)

--color-neutral
Success

oklch(0.5 0.15 150)

--color-success
Attention

oklch(0.55 0.12 250)

--color-attention
Error

oklch(0.55 0.2 30)

--color-error
Promotion

oklch(0.6 0.25 30)

--color-promotion

Extended Colour Palette

The color scheme of a site is defined using the site variables shown below. From this, CSS calculations will generate a range of primitive shades centered around the site variable, where the site colour is 500 on a scale of 50 (lightest) to 950 (darkest). These can be individually changed by overriding their css definitions.

Semantic shades have been labeled. Default shades are provided when no suffix is given, such as --color-primary. Other semantic shades, such as ‘light’ are given by using the label as the suffix, e.g. --color-primary-light

primary

light
--color-primary-50
oklch(from var(--color-primary-100) calc(1 - (1 - l) * 0.6) calc(c * 0.8) h)
Click to copy to clipboard
50
hover-light
--color-primary-400
oklch(from var(--color-primary-500) calc(1 - (1 - l) * 0.6) calc(c * 0.8) h)
Click to copy to clipboard
400
default
--color-primary-500
oklch(from var(--color-primary) l c h)
Click to copy to clipboard
500
hover
--color-primary-600
oklch(from var(--color-primary-500) calc(l * 0.8) calc(c * 1.1) h)
Click to copy to clipboard
600
dark
--color-primary-950
oklch(from var(--color-primary-900) calc(l * 0.8) calc(c * 1.1) h)
Click to copy to clipboard
950

secondary

light
--color-secondary-50
oklch(from var(--color-secondary-100) calc(1 - (1 - l) * 0.6) calc(c * 0.8) h)
Click to copy to clipboard
50
hover-light
--color-secondary-400
oklch(from var(--color-secondary-500) calc(1 - (1 - l) * 0.6) calc(c * 0.8) h)
Click to copy to clipboard
400
default
--color-secondary-500
oklch(from var(--color-secondary) l c h)
Click to copy to clipboard
500
hover
--color-secondary-600
oklch(from var(--color-secondary-500) calc(l * 0.8) calc(c * 1.1) h)
Click to copy to clipboard
600
dark
--color-secondary-950
oklch(from var(--color-secondary-900) calc(l * 0.8) calc(c * 1.1) h)
Click to copy to clipboard
950

tertiary

light
--color-tertiary-50
oklch(from var(--color-tertiary-100) calc(1 - (1 - l) * 0.6) calc(c * 0.8) h)
Click to copy to clipboard
50
hover-light
--color-tertiary-400
oklch(from var(--color-tertiary-500) calc(1 - (1 - l) * 0.6) calc(c * 0.8) h)
Click to copy to clipboard
400
default
--color-tertiary-500
oklch(from var(--color-tertiary) l c h)
Click to copy to clipboard
500
hover
--color-tertiary-600
oklch(from var(--color-tertiary-500) calc(l * 0.8) calc(c * 1.1) h)
Click to copy to clipboard
600
dark
--color-tertiary-950
oklch(from var(--color-tertiary-900) calc(l * 0.8) calc(c * 1.1) h)
Click to copy to clipboard
950

neutral

attention

success

error

promotion