Colour
Colours are named for what they mean, not what they look like. Components never use a raw value; they use a semantic token, and the token resolves per mode.
How colour is defined
Three layers. Only the last one appears in product code.
Neutrals carry the interface
Most of every screen is these six. Primary is neutral too: white in dark mode, black in light mode.
Colour is for what is abnormal
A fleet that is fine should look calm. Every state, busy or idle, is shape and neutral text; only warning, danger and the stop carry colour, so the one robot that needs you is the one you see.
- 7F3A Patrolling
- 2B10 Docked
- 9C44 Needs attention
- 8F15 Docked
- 7F3A ● Patrolling
- 2B10 ○ Docked
- 9C44 ▲ Needs attention
- 8F15 ○ Docked
Status colours come in pairs
Each tone has a foreground and a subtle tint. Use them together; never put tone text on another tone's tint.
Rules
Test and audit results
A run of tests, an evaluation or an audit gives each check one of three results. A pass is what is expected, so it is calm; only a failure carries colour. Each result has its own icon and edge, so the three never rely on colour alone.
- Caption accuracyPassed
- Counting objectsFailed
- Night imagesNot enough samples
- Safety refusalsPassed
- Caption accuracy Passed
- Counting objects Failed
- Night images Passed
- Safety refusals Passed
All colour tokens
Values come straight from the theme file. Contrast is measured against the surface the token sits on.
Surface and text
| Token | Utility | Light | Dark | Use |
|---|---|---|---|---|
--background | bg-background | #efeff2 | #09090b | Page only. Never fill a control with it: a field on a panel takes the panel's surface (card) and an input edge, or it reads as a hole |
--card | bg-card | #ffffff | #16161a | Cards, list groups, app-shell panels, and the fields on them |
--popover | bg-popover | #ffffff | #1c1c21 | Menus, dialogs. In dark one step above the card, so an overlay is told apart by its fill, not only a shadow |
--secondary | bg-secondary | #e6e6ea | #25252b | Secondary buttons |
--muted | bg-muted | #e6e6ea | #25252b | Current page in navigation (hover is accent), disabled fields, table headers |
--track | bg-track | #c4c4ca | #3f3f46 | The empty part of a slider, progress, meter or ring; skeleton bones, avatars without a picture, grips: 1.5:1 on the card and the page, so the shape reads |
--border | border-border | #dcdce1 | #2c2c32 | Dividers, outlines |
--input | border-input | #80808a | #72727a | The edge of anything you fill in or tick: fields, checkboxes, radios, a switch that is off. 3:1, since on a card the edge is all that shows the control |
--foreground | text-foreground | #09090b | #fafafa | Body text |
--muted-foreground | text-muted-foreground | #52525b | #a1a1aa | Secondary text |
--disabled | bg-disabled | #7a7a82 | #7c7c84 | Disabled text on text-only and outlined controls (outline and destructive buttons keep their outline): 3:1 on the page, a card and a muted track, lighter than secondary text |
--background- Utility
bg-background- Light
#efeff2- Dark
#09090b- Use
- Page only. Never fill a control with it: a field on a panel takes the panel's surface (card) and an input edge, or it reads as a hole
--card- Utility
bg-card- Light
#ffffff- Dark
#16161a- Use
- Cards, list groups, app-shell panels, and the fields on them
--popover- Utility
bg-popover- Light
#ffffff- Dark
#1c1c21- Use
- Menus, dialogs. In dark one step above the card, so an overlay is told apart by its fill, not only a shadow
--secondary- Utility
bg-secondary- Light
#e6e6ea- Dark
#25252b- Use
- Secondary buttons
--muted- Utility
bg-muted- Light
#e6e6ea- Dark
#25252b- Use
- Current page in navigation (hover is accent), disabled fields, table headers
--track- Utility
bg-track- Light
#c4c4ca- Dark
#3f3f46- Use
- The empty part of a slider, progress, meter or ring; skeleton bones, avatars without a picture, grips: 1.5:1 on the card and the page, so the shape reads
--border- Utility
border-border- Light
#dcdce1- Dark
#2c2c32- Use
- Dividers, outlines
--input- Utility
border-input- Light
#80808a- Dark
#72727a- Use
- The edge of anything you fill in or tick: fields, checkboxes, radios, a switch that is off. 3:1, since on a card the edge is all that shows the control
--foreground- Utility
text-foreground- Light
#09090b- Dark
#fafafa- Use
- Body text
--muted-foreground- Utility
text-muted-foreground- Light
#52525b- Dark
#a1a1aa- Use
- Secondary text
--disabled- Utility
bg-disabled- Light
#7a7a82- Dark
#7c7c84- Use
- Disabled text on text-only and outlined controls (outline and destructive buttons keep their outline): 3:1 on the page, a card and a muted track, lighter than secondary text
Emphasis
| Token | Utility | Light | Dark | Use |
|---|---|---|---|---|
--primary | bg-primary | #09090b | #fafafa | Primary action, selected |
--primary-foreground | text-primary-foreground | #ffffff | #09090b | Text on primary |
--ring | ring-ring | #09090b | #fafafa | Focus ring: the foreground colour, so focus never looks like a status |
--primary- Utility
bg-primary- Light
#09090b- Dark
#fafafa- Use
- Primary action, selected
--primary-foreground- Utility
text-primary-foreground- Light
#ffffff- Dark
#09090b- Use
- Text on primary
--ring- Utility
ring-ring- Light
#09090b- Dark
#fafafa- Use
- Focus ring: the foreground colour, so focus never looks like a status
Status (pairs)
| Token | Utility | Light | Dark | Use |
|---|---|---|---|---|
--info | bg-info | #2952b8 | #7da4e6 | A process someone is waiting on: progress, a running stage, a command being sent. Never a state |
--info-subtle | bg-info-subtle | #e4e9f4 | #1a2233 | Tint behind info |
--success | bg-success | #18704f | #6cc59c | Just done: a confirmation that comes and goes (toast, alert). A calm state stays grey. |
--success-subtle | bg-success-subtle | #e0eee7 | #172720 | Tint behind success |
--warning | bg-warning | #865900 | #ffd663 | Needs attention soon |
--warning-subtle | bg-warning-subtle | #f4ecda | #2b2516 | Tint behind warning |
--danger | bg-danger | #860012 | #f75b6b | Needs someone now: stopped, failed. |
--danger-subtle | bg-danger-subtle | #f6e2e1 | #321c1c | Tint behind danger |
--neutral | bg-neutral | #52525b | #a1a1aa | Offline, inactive |
--neutral-subtle | bg-neutral-subtle | #f4f4f5 | #1c1c21 | Tint behind neutral |
--info- Utility
bg-info- Light
#2952b8- Dark
#7da4e6- Use
- A process someone is waiting on: progress, a running stage, a command being sent. Never a state
--info-subtle- Utility
bg-info-subtle- Light
#e4e9f4- Dark
#1a2233- Use
- Tint behind info
--success- Utility
bg-success- Light
#18704f- Dark
#6cc59c- Use
- Just done: a confirmation that comes and goes (toast, alert). A calm state stays grey.
--success-subtle- Utility
bg-success-subtle- Light
#e0eee7- Dark
#172720- Use
- Tint behind success
--warning- Utility
bg-warning- Light
#865900- Dark
#ffd663- Use
- Needs attention soon
--warning-subtle- Utility
bg-warning-subtle- Light
#f4ecda- Dark
#2b2516- Use
- Tint behind warning
--danger- Utility
bg-danger- Light
#860012- Dark
#f75b6b- Use
- Needs someone now: stopped, failed.
--danger-subtle- Utility
bg-danger-subtle- Light
#f6e2e1- Dark
#321c1c- Use
- Tint behind danger
--neutral- Utility
bg-neutral- Light
#52525b- Dark
#a1a1aa- Use
- Offline, inactive
--neutral-subtle- Utility
bg-neutral-subtle- Light
#f4f4f5- Dark
#1c1c21- Use
- Tint behind neutral
Emergency stop
| Token | Utility | Light | Dark | Use |
|---|---|---|---|---|
--stop | bg-stop | #dc2626 | #dc2626 | Emergency stop only |
--stop-deep | bg-stop-deep | #991b1b | #7f1d1d | Stopped state, sent over Bluetooth |
--stop- Utility
bg-stop- Light
#dc2626- Dark
#dc2626- Use
- Emergency stop only
--stop-deep- Utility
bg-stop-deep- Light
#991b1b- Dark
#7f1d1d- Use
- Stopped state, sent over Bluetooth
Map and overlays
| Token | Utility | Light | Dark | Use |
|---|---|---|---|---|
--map | bg-map | #f1f2f5 | #0d0d10 | Map surface |
--map-point | bg-map-point | #7b8190 | #6f7682 | Point cloud |
--float | bg-float | rgb(255 255 255 / 0.9) | rgb(32 32 38 / 0.86) | Trays over the map |
--edge | ring-edge | rgb(9 9 11 / 0.14) | rgb(255 255 255 / 0.12) | Tray outline |
--scrim | bg-(--scrim) | rgb(9 9 11 / 0.45) | rgb(0 0 0 / 0.66) | Behind dialogs and sheets |
--map- Utility
bg-map- Light
#f1f2f5- Dark
#0d0d10- Use
- Map surface
--map-point- Utility
bg-map-point- Light
#7b8190- Dark
#6f7682- Use
- Point cloud
--float- Utility
bg-float- Light
rgb(255 255 255 / 0.9)- Dark
rgb(32 32 38 / 0.86)- Use
- Trays over the map
--edge- Utility
ring-edge- Light
rgb(9 9 11 / 0.14)- Dark
rgb(255 255 255 / 0.12)- Use
- Tray outline
--scrim- Utility
bg-(--scrim)- Light
rgb(9 9 11 / 0.45)- Dark
rgb(0 0 0 / 0.66)- Use
- Behind dialogs and sheets
Text on --background: foreground 19.1:1 dark, 17.3:1 light. Full table on the Accessibility page.