Skip to content

Colour and themes

Colour roles instead of loose colours, a light and a dark theme designed on purpose, and contrast checked for you.

Applies to EngineCloud
View as Markdown
On this page
  1. Roles, not loose colours
  2. Dark is designed, not inverted
  3. Contrast is checked for you
  4. Colour never speaks alone

Roles, not loose colours

Your app never uses «brown» or #3B2A1E directly. It uses roles: what a colour is for. Each role has one value in the light theme and one in the dark theme.

RoleUsed forLa Espiga, lightLa Espiga, dark
surfacethe pageflour whitedark rye
surface-raisedcards, sheets, menuswarm whitea step lighter than the page
surface-sunkenfields, wellslight crusta step darker
inktextdark browncream
ink-quietsecondary textsoft brownsoft cream
lineborders and dividerslight browndark brown
accentthe one action that matters on a screenwheat yellowbright wheat
on-accenttext on the accentdark browndark brown
focusthe keyboard focus ringa deep blue that stands out from the branda light blue
success, warning, danger, infooutcomes and alertsgreen, amber, brick red, bluelighter versions

A brand may add roles of its own (La Espiga has crust, for the pick-up code), each with a reason in the guide.

Dark is designed, not inverted

The dark theme gets its own values, chosen so the brand still feels like itself at night: surfaces are warm, not grey; the accent is a little brighter; shadows become light borders. The guide shows both themes side by side.

The theme follows the person’s system setting. Whether the app also offers a switch is a decision in the guide.

Contrast is checked for you

Every pair that appears together is checked when tokens are built and again by design check, against WCAG 2.2 level AA:

PairMinimum
text on its surface4.5 : 1
large text (24 px, or 19 px bold), icons and control borders3 : 1
the focus ring against what is around it3 : 1

A proposal that fails is not shown to you; a change you make by hand that fails is reported with the pair and the ratio.

Colour never speaks alone

Success, warning and danger always come with words or an icon, so a person who does not see the colour still gets the message. Charts use a palette derived from the guide, checked so neighbouring colours stay distinguishable.

  1. Roles, not loose colours
  2. Dark is designed, not inverted
  3. Contrast is checked for you
  4. Colour never speaks alone

    Search pages, sections and terms