Foundations · 01
Colour roles
Yellow is the only action colour: if it is yellow, you can press it (R14). Red, blue and green are signals with one meaning each — destroy, inform, confirm. Ink is #0E0E0C, never #000 (R15).
--bglight: #F2EEDFdark: #11110FPage canvas
--surfacelight: #FFFFFFdark: #1B1B18Cards, panels, inputs
--surface-2light: #E7E1CBdark: #272722Sunken wells, hovers, table heads
--inklight: #0E0E0Cdark: #F2EEDFHeadings, primary text
--ink-2light: #1D1C18dark: #E4DFCCBody copy on surfaces
--mutedlight: #55524Adark: #ADA895Helper text, metadata
--linelight: #0E0E0Cdark: #F2EEDFDividers, card edges
--line-stronglight: #0E0E0Cdark: #F2EEDFInput borders (3:1 non-text)
--primarylight: #0E0E0Cdark: #FFE600The one filled button per screen
--primary-inklight: #FFE600dark: #0E0E0CLabel on primary
--accentlight: #FFE600dark: #FFE600Links, selection, focus — touchable only
--accent-inklight: #0E0E0Cdark: #0E0E0CLabel on accent fills
--dangerlight: #C8202Fdark: #FF5D6CErrors, destructive actions
--danger-inklight: #FFFFFFdark: #0E0E0CLabel on danger fills
--danger-softlight: #FAD7DAdark: #3A1519Error wash
--oklight: #13723Adark: #45D483Saved, active, done
--ok-softlight: #D3EDDAdark: #12301DSuccess wash
--warnlight: #FF9F1Cdark: #FFA947Pending, heads-up
--warn-softlight: #FFE3BCdark: #3A2610Warning wash
--infolight: #1D4ED8dark: #86A3FFNeutral news, “new”
--info-softlight: #DCE4FBdark: #1A2240Info wash
--focuslight: #1D4ED8dark: #86A3FFKeyboard focus outline
--scrimlight: rgba(14,14,12,.6)dark: rgba(17,17,15,.78)Behind modals and sheets
Contrast, both themes
Measured live from the tokens.
| Pair | Light | Dark |
|---|---|---|
Headlines on paper--ink / --bg | 16.63:1AAA | 16.27:1AAA |
Body on card--ink-2 / --surface | 17.05:1AAA | 12.93:1AAA |
Helper text on paper--muted / --bg | 6.71:1AA | 7.93:1AAA |
Metadata on table head--muted / --surface-2 | 5.95:1AA | 6.30:1AA |
Primary button label--primary-ink / --primary | 15.25:1AAA | 15.25:1AAA |
Ink on yellow--accent-ink / --accent | 15.25:1AAA | 15.25:1AAA |
Destructive button--danger-ink / --danger | 5.67:1AA | 6.47:1AA |
Error message--danger / --surface | 5.67:1AA | 5.78:1AA |
Success stamp--ink / --ok-soft | 15.55:1AAA | 12.32:1AAA |
Ink on pending stamp--accent-ink / --warn | 9.41:1AAA | 10.14:1AAA |
Input border--line / --surface | 19.32:13:1 UI | 14.85:13:1 UI |
Focus ring--focus / --bg | 5.77:13:1 UI | 7.83:13:1 UI |
Text needs 4.5:1, large text and UI edges 3:1 (WCAG 2.2). The current theme’s column is shaded.
Contrast lab
Pick any two roles; switch theme to see the dark pairing.
—
Form follows fear.