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

Inset Wells, inputs — recessed below the field
Base Body, sidebar — the chrome
Panel The main content field
Card Grouped content lifted above the panel
Float Menus, popovers, toasts — card fill + shadow

Interactive states

Hover Wash over a neutral surface on hover
Active Pressed / active wash

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.

App chrome — body, sidebar, topbar
Content field — the main sheet
Card / raised group on the field
Control-bearing well — filter rails, control groups
Quiet display well — code, readouts (no nested controls)
Input / select / textarea
Menu / popover / toast / tooltip (+ elevation)
  1. A surface differs from the one directly behind it by at least one rung — check the parent before you pick.
  2. Never inset-on-inset (or any same-rung nesting). A well that holds controls is base, so its inset controls still read.
  3. Shadows only on float; everything inline stays flat.
  4. 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

Hairlines
Emphasis, focused inputs
Dense-data hairlines (tables, trees)

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.

0.25rem
0.375rem
0.5rem
0.75rem
1rem
1.25rem
999px
Control Inputs, selects, textareas
Panel Cards, menus, dropdowns, popovers
Container main, modals, big sheets
Pill Badges, buttons, nav, CTA

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

Hairlines against wells
before — hairlines
Overview
Metrics
Logs
after — recessed wells
Overview
Metrics
Logs

The same three rows, grouped by a line and by a recessed tone step.

One tone knob, two neutrals
base
Aa muted
tinted
Aa muted

The tinted panel sets only the surface tone; its surfaces and inks warm together.