Every colour on a screen answers two questions: what is this, and what does it mean? Answer both and the token name follows.
Pick a token by what you are painting and what it means, not by how it looks.
- Card:
surface, edgeborder; titletext - Primary button:
background.neutral.bold,text.inverse - Secondary text:
text.subtle - Status label:
border.success,text.success - Selected row:
background.selectedand theborder.selectedbar - Link:
link
Find the token
| I need | Use |
|---|---|
| Page background | surface.page |
| Card, panel | surface, edge border |
| Menu, popover, dialog, drawer | surface.overlay; items inside use surface.overlay.hover, .pressed, .selected |
| App header and side navigation | surface.page, edge border |
| Table header, quiet area | surface.subtle |
| Body text, headings, labels | text |
| Descriptions, secondary table columns, navigation | text.subtle |
| Metadata, timestamps, helper text, breadcrumbs | text.subtlest |
| Placeholder | text.subtlest |
| Link | link; on hover link.hover |
| Icon next to text | icon; less important icon.subtle |
| Divider, card edge | border |
| Edge of an input, checkbox or select | border.bold |
| Keyboard focus ring | border.focus, 2 px, 2 px away |
| Primary button | background.neutral.bold, text.inverse |
| Default button | surface, border, text; on hover background.neutral.transparent.hover |
| Destructive button | background.danger.bold, text.on-bold |
| Row or menu item on hover | background.neutral.subtle.hover |
| Selected row, tab or menu item | background.selected and a second cue |
| Current page in the navigation | border.selected bar, background.selected, aria-current="page" |
| Error under a field | text.danger, icon.danger |
| Banner for a status | background.{role}.subtle, border.{role}.subtle, text, icon.{role} |
| Status in a table row | A label |
| Tag: a category on an item | border, text on surface (which one?) |
| Chip: a filter or a picked value | border.bold, text on surface, remove icon icon.subtle; when on, background.selected and border.selected |
| Tooltip | surface.inverse, text.inverse |
| Toast | surface.overlay, text, icon.{role}, shadow elevation.shadow.overlay; no border |
| Switch | switch.on.*: track background.neutral.bold, thumb icon.inverse. switch.off.*: track background.neutral, edge border.bold, thumb icon. See Switch |
| Avatar with initials | background.neutral, text |
| Step number, count | background.neutral.bold, text.inverse |
| Layer behind a dialog or drawer | surface.scrim |
| Loading placeholder | skeleton, sheen skeleton.subtle |
| Code block | code.background, code.text |
| Brand note | background.brand.subtle, border.brand.subtle |
| Disabled control | background.disabled, text.disabled, border.disabled |
Not in the table? Build the name from its four parts (see Tokens). If no token exists, ask for one; don’t pick the nearest colour.
Surfaces and backgrounds
Surfaces are the layers of a screen; backgrounds fill the things on them.
surface.scrim goes behind dialogs and drawers only, one layer, at its own opacity.
Emphasis
text.on-bold on bold.Status
Every status is one of five roles. Pick by what the person needs to do, and always say it in words.
Choosing a status
| Role | Use when | HexaSync examples |
|---|---|---|
| Info | Something is happening or worth knowing; no action needed. | Syncing, queued, importing |
| Success | It worked. | Synced, connected, completed |
| Warning | It works now but needs attention soon. | Partial sync, token expires in 3 days, rate limited |
| Danger | It failed or is blocked, or the action destroys something. | Failed, disconnected, delete |
| Neutral | Nothing is happening and nothing is wrong. | Paused, draft, skipped, archived |
Warning is orange, not yellow: yellow is the brand. There is no sixth level; say the difference in words (“Failed 3 times”).
Status colours
| Role | Means | Text | Subtle | Bold | Contrast (light / dark) |
|---|---|---|---|---|---|
| Info blue scale | Running and in-progress work, neutral information | #005195#6BB3FA | #E6F4FE#0D2847 | #0077D5#0088F1 | text on page 8.0:1 / 8.0:1 text on subtle 7.1:1 / 6.6:1 text on bold 4.5:1 / 4.9:1 |
| Success green scale | Synced, connected, completed, healthy | #005C3A#5EC18A | #E6F6EB#132D21 | #008753#1F9962 | text on page 8.1:1 / 8.0:1 text on subtle 7.2:1 / 6.6:1 text on bold 4.5:1 / 4.9:1 |
| Warning orange scale | Needs attention soon: partial sync, expiring token, rate limit | #8A3600#F5974E | #FFEFD6#331E0B | #BA4E00#DB6200 | text on page 8.0:1 / 8.0:1 text on subtle 7.1:1 / 7.0:1 text on bold 5.0:1 / 4.9:1 |
| Danger red scale | Failed, error, blocked; destructive actions | #9B1E20#FF8E84 | #FEEBE9#3B1310 | #D83B39#EF4C48 | text on page 8.0:1 / 8.0:1 text on subtle 7.0:1 / 7.3:1 text on bold 4.5:1 / 4.9:1 |
| Neutral graphite scale | Idle, paused, draft, skipped, archived | #42413F#CDCCC9 | #F1F1F0#282827 | #2B2A28#EEEEED | text on page 10.1:1 / 11.1:1 text on subtle 9.0:1 / 9.1:1 text on bold 14.0:1 / 15.4:1 |
Warnings are orange.
A yellow warning: it reads as the brand.
Labels
| Label | State label | |
|---|---|---|
| Looks | Outline in the role’s border, text in its text |
Fill in the role’s bold, text and icon in text.on-bold |
| Size | 20 px, padding 6 px; large 24 px, 8 px (label.height.*, label.padding.*) |
32 px, padding 12 px (label.height.state, label.padding.state) |
| Use | Many per screen: status in table rows and lists | One per page: the status the page is about |
Label, tag or chip
Three small elements that look alike but do different jobs. Choose by what people can do with it, not by how it looks.
Removable chip · filter chip on · filter chip off
| Label | Tag | Chip | |
|---|---|---|---|
| What it is | A status the system sets | A category or attribute attached to an item | A value people entered or picked |
| Example | Synced, Failed, Expiring | Orders, Staging, Backend | An active filter, a value in a multi-select |
| People can | Only read it | Read it, or click it to filter when it links | Remove it, or turn it on and off |
| States | None | Default; hover and focus only when it links | Default, hover, focus, selected, disabled |
| Colour | The status role’s border and text |
border and text on surface |
border.bold and text on surface; when on, background.selected and border.selected |
| Size | 20 px, or 24 px large (see above) | 24 px, padding 8 px (tag.height, tag.padding) |
24 px in dense toolbars, 32 px elsewhere (chip.height.small, .default) |
- A label never looks clickable: no hover, no pointer, no remove button.
- A tag never has a remove button. Once it does, it is a chip.
- A chip always responds to people. If nothing happens when people click it, it is a tag or a label.
Interaction states
Add .hover or .pressed to the token at rest; never use opacity or an overlay.
| Rest | Hover | Pressed | Focus | Disabled | |
|---|---|---|---|---|---|
| Primary | |||||
| Default | |||||
| Row | Store | Store | Store | Store | Selected |
- Primary
background.neutral.bold→.hover→.pressed - Default
surface→background.neutral.transparent.hover→.pressed - Row
background.neutral.subtle→.hover→.pressed - Focus
border.focus, 2 px, 2 px away · Disabledbackground.disabled,text.disabled· Selectedbackground.selected,border.selectedbar
| State | Use |
|---|---|
| Hover, pressed | The rest token plus .hover or .pressed |
| Selected | background.selected and a second cue |
| Focus | 2 px border.focus ring, 2 px away |
| Disabled | background.disabled, text.disabled, border.disabled |
On a row or menu item each state sits one step further from the background: hover, then selected, then selected on hover. A hovered row is always lighter than a selected one, so it never looks selected.
More on Interaction states.
Buttons
background.neutral.bold · text.inverseLight #2B2A28, text 14.0:1 · Dark #EEEEED, text 15.4:1One per view: the main action. Graphite; it turns light in dark.background.danger.bold · text.on-boldLight #D83B39, text 4.5:1 · Dark #EF4C48, text 4.9:1Destructive actions, after a confirmation.