Surfaces
Every neutral background and foreground composes oklch(shade × var(--q-surface-tone)). Surfaces are named by role, not faux-depth, and the ladder runs in real ~0.05
lightness steps — going lighter in both themes (not inverted
in dark) — so adjacent surfaces separate on tone alone, no border needed. An
app warms its whole context with one knob: --q-surface-tone: var(--q-tinted). Shadows are reserved for
layers that actually float (menus, popovers, toasts); everything inline stays
flat.
Surface roles
Interactive states
Placement conventions
Surfaces are absolute roles — nothing auto-elevates, so you pick the rung. The one rule that prevents the invisible-panel bug: a surface must sit a rung apart from whatever is directly behind it. Follow the map, keep nesting shallow.
- A surface differs from the one directly behind it by at least one rung — check the parent before you pick.
- Never inset-on-inset (or any same-rung nesting). A well that holds controls is base, so its inset controls still read.
- Shadows only on float; everything inline stays flat.
- The ladder is shallow (~4 rungs; in light, card sits near white) — keep nesting to ~2 elevations.
Foreground on surfaces
Text strong Emphasis — strong, titles
Text Primary — body, headings
Text muted Secondary — labels, captions
Text subtle Tertiary — placeholders, hints
Radius ramp
A mechanical ramp feeds four semantic roles. The brand leans soft — the pill is the signature, so the ramp runs generous: big surfaces echo the pill language instead of fighting it.
Borderless: recessed wells
Going borderless, grouped content separates with a recessed well — a flat inset colour step, no hairline and no shadow — rather than a dividing line. Hairlines survive only for dense data (tables, trees) where the steps would be noisy.
The tone knob
The dashboard and docs use the crisp neutral; the marketing
site sets --q-surface-tone: var(--q-tinted) to warm every surface
and foreground at once — the brand hue carried into the neutrals.
Examples
The same three rows, grouped by a line and by a recessed tone step.
The tinted panel sets only the surface tone; its surfaces and inks warm together.