Colour theme

Control room

Where drift shows before it ships. Every control has a mechanical twin in the e2e suite.

Resolution

What this browser and display actually resolve. Drag the window to another monitor and watch the gamut row follow.

  • display gamut
  • oklch
  • @property
  • color-mix
  • container queries
  • text-box-trim
  • appearance
  • contrast
  • tier
  • width

The same color, authored (oklch) and gamut-mapped (hex). Identical on an sRGB display — the left one is more saturated on P3.

Text box

Every component on the text-box engine, measured twice: on the left as this browser trims it, on the right with the fallback forced, so both branches can be compared in one browser. Each section ends with its readout — the height the cell gets and where the last baseline sits in it, native / fallback; Δ is the drift between the two.

Native — text-box-trim

The browser trims the text's own box to the text: from the top of the capitals on the first line to the baseline of the last. No space above the first word, none below the last — the line height lives only between the lines.

Fallback — negative margins

For a browser without text-box-trim: the same cut, made from the typeface's own metrics. Half the leading is pulled in above and below, then the gap above the capitals at the top and the descent at the bottom; the voice's baseline offset nudges both. The box stays whole, the margins pull the cell in.

margin-block-start: ((emBox − lineHeight) / 2 − capGap + baselineOffset) × 1em
margin-block-end:   ((emBox − lineHeight) / 2 − descent − baselineOffset) × 1em

Deletable by design: the fallback is generated, so when text-box-trim reaches the browser floor it leaves in one edit — its two blocks in engine/text-box.js, the forced twin with them — and the native rule keeps working as written.

Bench instruments

Text

One line in body sm

One line in body sm

One line in body md

One line in body md

One line in body lg

One line in body lg

Wrapped body md, so the leading between the lines shows

Wrapped body md, so the leading between the lines shows

Heading

A heading in size 2

A heading in size 2

A heading in size 6

A heading in size 6

Display 2

Display 2

A wrapped heading, the leading between its lines

A wrapped heading, the leading between its lines

Caption

A hint under a field

A hint under a field

A form label

A form label

The button voice

The button voice

The nav voice

The nav voice

TextBlock

A standfirst from a field

A standfirst from a field

A plain field in the body voice

A plain field in the body voice

First line of the field Second line of the field

First line of the field Second line of the field

Button

Controls

https://
SEK
https://
SEK

Composed

Every door stacked as a page would stack them — eyebrow, heading, two paragraphs, an inset with its own label, a button, the small print. The guides run from every native text box across both cards.

For your team

Your trial ends on Friday

Your project is ready to go live, and the plan you are on keeps it running until the end of the week.

Here is a code for the first month of the next plan. It works on every plan above it, in any currency.

Your personal code

TRIAL-20-K7QX takes the first month off any plan above the one you have. It works once.

The code is personal to this account, works once, and cannot be combined with another offer.

For your team

Your trial ends on Friday

Your project is ready to go live, and the plan you are on keeps it running until the end of the week.

Here is a code for the first month of the next plan. It works on every plan above it, in any currency.

Your personal code

TRIAL-20-K7QX takes the first month off any plan above the one you have. It works once.

The code is personal to this account, works once, and cannot be combined with another offer.

Themes

A Theme steps into one of the project's themes. Every theme renders the same set — drift in any theme shows here first.

theme-1 · theme-1

Text

Muted

border

theme-2 · theme-2

Text

Muted

border

theme-3 · theme-3

Text

Muted

border

theme-4 · theme-4

Text

Muted

border

Nested

theme-1

Outer theme

theme-2, inside

Inner theme

Shadows

A card's shadow mixes two tones: the ground's ink, which the Theme a card lies on publishes, and a glow of the card's own surface, through the valves of its theme. Each row is a ground; each card in it is in a theme (data-theme on the card). The readout gives both tones as this browser resolves them — switch the appearance to read the other modes. Where relative colour is missing, the glow is absent and the ground's ink stands alone.

The valves

Ground ink (soft layer at 0.5 × alpha) · glow

Knoblightdarklight-contrastdark-contrast
ink lightness0.350.2500
ink chroma10.500
ink alpha0.140.4500
glow lightness1100
glow chroma10.500
glow alpha0.350.2500

Per-theme overrides: none — every theme takes the recipe.

Every ground, every theme

On the page

no theme

theme-1 · theme-1

theme-2 · theme-2

theme-3 · theme-3

theme-4 · theme-4

On theme-1 · theme-1

no theme

theme-1 · theme-1

theme-2 · theme-2

theme-3 · theme-3

theme-4 · theme-4

On theme-2 · theme-2

no theme

theme-1 · theme-1

theme-2 · theme-2

theme-3 · theme-3

theme-4 · theme-4

On theme-3 · theme-3

no theme

theme-1 · theme-1

theme-2 · theme-2

theme-3 · theme-3

theme-4 · theme-4

On theme-4 · theme-4

no theme

theme-1 · theme-1

theme-2 · theme-2

theme-3 · theme-3

theme-4 · theme-4