Tree of DesignAll terms A–Z

Semantic Colour

Colour named by its job, such as error or success, and not by its appearance.

See it on the 3D tree

Going deeper

It adds a layer between raw palette values and the interface. A name such as colour-text-error points to a particular red, and that pointer can change per theme or brand without touching components. A descriptive name such as red-500 says what the colour is, not when to use it.

Why it matters

Roles keep meaning consistent across screens and make theming far easier, because you remap names instead of repainting every component.

In practice

A delete button uses the danger background role. In dark mode that role points to a different red, and the button needs no separate edit.

Common mistake

Using the success or error colour as decoration, which weakens its meaning when something really has succeeded or failed.

Connected terms