The app chrome — The Mechanical
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
A paste-up board, chosen by the owner on 2026-08-27 after two direction rounds and built in the chrome build (2026-08-31). It shares no token, colour or typeface with the slide themes, and that is the point: the 1080² artwork appears in exactly one place in the app — on paper, inside crop marks, as the thing being made — and everything around it is board, graphite and production marks.
Canonical reference: design.md (§1–§4, plus the token block)
and design-components.md (§5–§9), re-derived from
the shipped chrome on 2026-08-31 and moved out of the repo-root DESIGN.md by
the docs rewrite (2026-08-31). §2 records the five comp values that could not hold 4.5:1 as real
text; §9 records what the chrome does not yet carry.
- Tokens —
:rootinui/src/styles/global.css. Board#fbfbf9under a 26px non-photo blue lattice, paper for anything waxed onto it, 70% tissue for the inspector; graphite#2b2b2btext withgraphite-soft#6d6a62the floor andgraphite-tint#7a7a76for rules and ticks only. No radius scale — deleted, and nothing inui/setsborder-radius. Two shadows,--shadow-waxedand--shadow-hinged, both physical. - Typefaces — Archivo (variable
wdth/wght) and Spline Sans Mono, self-hosted inui/public/fonts/, served from Vite's public dir at/fonts/*. Inter is declared for one consumer only, the preview canvas, which must set the type Chromium will;assets/fonts/(API,/assets/fonts/*) is the renderer's separate copy. - State is a mark, never a badge.
Badge,StepperandSpinnerare gone;ui/src/components/ui/Marks.tsxdraws each mark once —Mark,Stamp(published),TissueCorner(draft),HeldOut/HATCH(held out, disabled, won't compile — the only way the app says that),WAX,CropMarks,RegisterTargets,Finding. - Two animations, no more —
ui/src/lib/motion.ts, on anime.js 4.5.0: the compile (the stage frame re-sets; never the canvas) and the hinge (the tissue rotates about its top edge on a selection change). Both jump to the end state underprefers-reduced-motion— asserted byui/src/lib/motion.test.ts. - The tray is
ui/src/components/Sidebar.tsx: a full-width 78px strip of showings — each compartment renders what its route produces, not a label — pointing at/,/posts,/readerand/settings, plusSessionMenu: the username and a "Sign out" button with a session, a link to the app's own/loginwithout one. Signing out of Ward as well is in Settings. It is 78px at every width. Below 640px, where one course stops fitting, it divides into two courses instead — one unit of head (wordmark, session) over two units of compartments, each compartment a share of its course rather than a fixed width. See the note below on why the fixed width was wrong even though it was a grid multiple. - The health probe —
ui/src/components/ApiHealthDot.tsx— ships two states,upanddown. A check in flight paints as up; the health-mark fix (2026-09-01) folded the oldloadingaway because it never had a form of its own (it shared thedimtone withonline, so only the word ever told them apart). Above 640px it is a tick and a word in the session cell. Below 640px it renders nothing when up and the tick plusAPI DOWNwhen down — clipped, notdisplay: none, so the word stays in the accessibility tree at the width where the sighted view gives it up. See the note below. - Primitives in
ui/src/components/ui/still sit on Base UI with unchanged wrapper APIs (Select'sonValueChange,Toggle'sonCheckedChange); keep raw<input>/<button>/dialog elements out of feature components./kitchen-sinkis the proof surface — every primitive and mark on one board — and it exists only undervite dev, via theproofSheetplugin inui/vite.config.ts. Keep it current.
What a once-per-element sweep cannot see
The chrome build (2026-08-31) measured the chrome carefully and said what it measured: one viewport, one state per element. The tray and health-mark fixes of 2026-09-01 fixed three defects that sat exactly in that blind spot. All three had shipped since 64; none was a regression. All three are worth reading as a method note rather than as bugs.
Grid-conformance is not fitting. The tray's narrow branch was written in
26px multiples — width: 78px /* 3 × 26 */ — exactly as the One Grid Rule
asks, and it was still broken: at a 320px viewport the brand block, four 78px
compartments and the session cell wanted 619px of strip, the nav list was left
a 12px window onto 312px of compartments, and /posts, /articles and
/settings were unreachable — the hit test at each link's centre returned the
session cell. A rule stated in units invites the belief that satisfying the
units satisfies the layout. It does not: the unit says how big a thing may be,
never whether there is room for it. The grid still governs the tray — the
courses are 1 and 2 units and the strip is 3 — but a compartment's width is
now a share of the space that exists. Anything sized in multiples along an axis
that has to hold several of them needs a width measured in a browser, at the
narrowest viewport it claims to support, not an arithmetic check that the
number divides by 26.
Contrast is a property of a pair, and one of the pair moves. Every galley
token cleared 4.5:1 against paper, which is the surface the sweep visited. On
the wax highlight that marks the selected element they did not: punct and
attr measured 3.88:1 and value 4.43:1, because the token colours won the
cascade over the wax mark's own ink and the galley spent the selected line
writing paper ink on wax. --wax-ink (8.87:1 on wax) existed the whole time
and never applied anywhere. The states a sweep must re-visit, because each one
changes a surface or an ink under text that already passed:
- on a highlight — wax in the galley; non-photo blue
::selectionanywhere text is selectable, and the galley's own selection, laid over the wax - selected / current — the waxed compartment, the lifted node, the inverted chip
- hover and focus-visible — anything that swaps ink or ground on pointer or key
- disabled and held out — rubylith wash and 45° hatch, both laid over live text
- error — the rubylith wash under a lint-flagged run
- narrow — any breakpoint that removes content rather than reflowing it; what is left has to still say what the removed thing said
A bleed paints in tree order, so it goes on one box, under the text. The
galley's wax bled 0.35em past the text with two box-shadows, and it sat on
every token of the selected run. Inline boxes paint one after another, each
box's ground and then its text, so each token's left bleed covered about half
of the glyph before it: in <Heading size="xl"> the <, the g, the e of
size, the =, the closing quote and the > each lost about half their ink.
Since the wax-run fix (2026-10-19) the run is one wrapper carrying WAX, laid under the galley's
text (a negative z-index in the <pre>'s stacking context, -2 since
2026-11-06), and the tokens inside
take --wax-ink from .onWax. Any mark that reaches past its own box has the
same hazard; a Chromium test (SourcePane.wax.test.ts) counts each glyph's
ink with and without the wax.
A highlight belongs to the element that paints it. The galley's text is
drawn by a <pre> under a transparent <textarea>, and until 2026-11-05 the
textarea's ::selection was opaque wax with transparent ink: the selection
painted on the textarea's layer, above the galley, so every selected glyph lost
all its ink, and its box was the whole 23 px line where the wax run is the
text's 15 px. A highlight pseudo-element can neither move to another element's
layer nor be shorter than its line box. So the textarea's ::selection is now
transparent ground and ink, and the galley paints the range itself, as
non-photo blue (--non-photo-select) under graphite (.onSelection) since
2026-11-06; it was wax under wax-ink before.
A layer can't go between a stacking context's ground and its text. On
2026-11-05 the selection's ground was a second <pre> laid under the galley,
which kept it off every glyph but left a selection inside the selected
element under the wax, with no visible extent. The wax run is an inline
stacking context, and its wax and its text paint together: a layer outside
it sits under both or over both (lifted above the run, the blue hid every
selected glyph in it). So since 2026-11-06 the ground is a wrapper in the
galley's own token tree, split where a selection crosses the run's edge. Off
the run it sits behind the text at z-index: -1, like the run; the run went
to -2, or its bleed painted over the end of a selection that stops where
the run begins. Inside the run it is an ordinary inline box, painted after
the wax and under its own text; inside an inline stacking context a negative
layer paints under the element's own ground, so tree order is the only way
in. Its one cost: the blue paints after the glyph before the selection, so an
oblique comment leaning into the first selected cell loses its tip there. The
Chromium test counts the selected glyphs' ink, measures the ground against
the run and the characters, and checks the blue has no gap across the run's
edge.
A breakpoint that hides the word leaves hue holding the state. The health
probe hid its label under max-width: 768px, so from 320 to 768 both states
painted the same 6 × 1 pixel tick and differed only in ink — a 320px tray read
NEWSPAPPER … SIGN OUT –, which is the one place the chrome broke state is
carried by mark, never by a coloured badge. Measured on the production bundle
in a Chromium viewport, the up and down trays differed in 6 greyscale pixels
at 320, 390, 640, 641 and 768 — the tick, and nothing else. The fix is not a
smaller mark. A tick that size cannot be hatched, filled or reshaped
legibly: any hue-free distinction needs area, and the word was the area.
So the probe keeps the full word at every width and spends the width only when
it has something to say. Same sweep after: 628 greyscale pixels at 320 and
390, 146 from 641 up. The breakpoint also moved 768 → 640, where the tray
actually folds; between 641 and 768 the word had been hidden inside a strip
that was still one roomy course.
Two things that look like findings and are not. The galley's <textarea> is
deliberately color: transparent over the painted <pre>, with a transparent
::selection too; any sweep will flag them and they are correct as they stand. And on wax the galley pools its hues into
--wax-ink on purpose, as a selection pools them into graphite: bold and italic still separate component from tag from
comment, and the one hue that carried meaning — process-blue on prop values —
is carrying it for the element the tissue is displaying in full at that moment.
Accepted degradation below 320px. At 240px in the down state, the widened
session cell squeezes the brand cell — which is the flexible column and is set
to clip — and the wordmark reads NEWSPAP. Every route stays reachable and
document h-scroll stays 0; the wordmark is intact at 320px, the narrowest width
any real device uses. Recorded rather than fixed: the tray fix (2026-09-01) measured the tray
with the probe 6px wide, so no sweep had seen the brand cell under a wide
session cell until the health-mark fix (2026-09-01) gave the probe a word to carry.