- ds
- Foundations
- Color
Color
Neutrals, the accent, amber, and contrast in both themes.
Each swatch shows light on the left and dark on the right, then the contrast of the colour as text on --bg in each theme. Ratios are computed at build time from the tokens, so this page can never drift from ds.css.
Neutrals
Warm greys. --bg is the page, --surface sits on it (cards, figures, inputs in fin1te), --bg-sunk sits below it (footer, segmented tracks, hover fills).
Accent and amber
--accent fills and strokes. --accent-ink is the text version, tuned for contrast. --accent-wash is the tinted background behind selected things. Amber follows the same three-part pattern.
Data and effects
| Token | Light | Dark |
|---|---|---|
--grid-line | rgba(20, 20, 19, 0.06) | rgba(238, 237, 232, 0.055) |
--grid-dot | rgba(20, 20, 19, 0.07) | rgba(238, 237, 232, 0.06) |
--shadow | 0 1px 2px rgba(20, 20, 19, 0.04), 0 6px 20px -8px rgba(20, 20, 19, 0.14) | 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.6) |
--shadow-lg | 0 1.5rem 3.75rem -0.75rem rgba(0, 0, 0, 0.35) | 0 1.5rem 3.75rem -0.75rem rgba(0, 0, 0, 0.7) |
Text contrast
| Text | On | Light | Dark |
|---|---|---|---|
--ink | --bg | 16.90 · AAA | 16.48 · AAA |
--ink-2 | --bg | 9.99 · AAA | 11.51 · AAA |
--muted | --bg | 4.97 · AA | 6.20 · AA |
--muted | --surface | 5.29 · AA | 5.87 · AA |
--faint | --bg | 2.58 · decorative | 3.26 · AA large |
--accent-ink | --bg | 6.52 · AA | 9.21 · AAA |
--accent-ink | --accent-wash | 6.03 · AA | 7.98 · AAA |
--amber-ink | --amber-wash | 4.45 · AA large | 11.00 · AAA |
--bg | --ink | 16.90 · AAA | 16.48 · AAA |
In use
Case study
Checkout rewrite, 3.1x faster
Published 12 Aug 2026 · 8 min
Code
<p class="label kicker">Case study</p>
<p style="font-size:1.25rem;font-weight:600">Checkout rewrite, <span class="accent">3.1x faster</span></p>
<p class="muted">Published 12 Aug 2026 · <span class="warm">8 min</span></p>Do
- Use
--accent-inkand--amber-inkfor text, never--accentor--amber. - Keep one accented phrase per block.
- Use tokens in your own CSS so dark mode comes for free.
Don't
- Put body text in
--faint. - Use amber for buttons or links.
- Hard-code hex values from this page.