Design System: Newspapper — components, motion, rules
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
The second half of The Mechanical. design.md carries §1–§4 — the north star, the palette, the type hierarchy, the two shadows — and the machine-readable token block in its frontmatter. Section numbers are continuous across the two pages, so a source comment citing "DESIGN.md §5" lands here.
What was actually built against this spec is chrome.md.
5. Components
The Board
The app ground. #fbfbf9 under a 26px non-photo blue lattice drawn as two repeating-linear-gradients at 40% alpha. Every region, slip, thumbnail and galley aligns to that pitch at every breakpoint.
The Tray (component palette / nav)
A full-width strip at the top of the board, 78px, closed by a 1.5px graphite rule. Compartments divided by 1px rule, each holding one component as a showing plus a 8.5px mono caption. An unavailable compartment takes a 45° hatch (repeating-linear-gradient(45deg, transparent 0 5px, rgba(43,43,43,.07) 5px 10px)) — the same "held out" idea as rubylith, at tray scale. The comps also dropped it to 42% opacity; that puts a 9px caption at ~3.1:1, so the ink stays full and the hatch carries the state on its own.
A compartment's width is a share, not a multiple. The strip is 78px (3 × 26) at every width. Below 640px, where one course no longer holds the brand block, four compartments and the session cell, it divides into two courses — one unit of head carrying the wordmark and the session, two units of compartments under it — and each compartment takes an equal share of the course, floored at 2 × 26, below which the course scrolls. Every route stays reachable down to 240px. Fixing the compartment width at a grid multiple is what made the tray unusable on a phone from 2026-08-31 to 2026-09-01: see chrome.md, grid-conformance is not fitting.
The Galley (source pane)
A waxed paper strip, 372px, top-aligned, with a graphite tab carrying the filename. The bottom edge is torn, not cut — a clip-path deckle that says the copy continues. Syntax colour follows casing: lowercase document tags in graphite-soft, capitalised components in graphite 700, prop values in process-blue. (The comps set the document tags in #9d9d97, which is 2.6:1 on paper — recede by weight and case, not by dropping below the ink floor.) The selected element is waxed (#f5d97a, bled 0.35em, about 4px, past the text on both sides, laid once per run and under the glyphs so it covers none of them); a lint-flagged line takes a 16% rubylith wash. (The comps said 20px. In a galley 7.5px to the character that is nearly three characters of yellow either side, which reads as selecting the neighbouring tokens; the wax-run fix (2026-10-19) settled on the shipped 0.35em.)
On wax the galley writes in wax-ink. Wax is a surface, and a surface has its own ink: every token on the selected run takes #3d3416 (8.87:1 on wax), because the paper inks do not hold 4.5:1 on it — graphite-soft measures 3.88:1 and process-blue 4.43:1. The casing distinction survives the highlight in weight and slope, not in hue: components stay 700, comments stay italic. Hue pools, and the one hue that carried meaning — process-blue on prop values — pools for the one element the tissue is displaying in full while it is selected. The token colours are written at zero specificity (:where()) so the wax ink wins on merit rather than on which CSS module the bundler emitted last. A text selection is not wax (2026-11-06): it is non-photo-select (#99c5ed) under graphite (7.8:1), painted by the galley rather than by the textarea, exactly the selected characters wide and the text's height, no bleed. Inside the selected element it lies over the wax, so it shows where it starts and ends; components stay 700 and comments italic on it too (chrome.md).
The Stage (canvas)
The 1080² slide inside 30px of clearance, with crop marks — 1px L-ticks at each corner — and a register target (a 22px crosshair inside a circle) at each of the four corners. A dimension line across the top states the real size. The slide itself is warm-industrial and untouched by this system.
The preview scales by integer factors only (½, ¼). A fractionally resampled preview is not a preview.
The Strip (slide thumbnails)
52px squares at one fixed scale on a shared baseline, ordinals bottom-right in 8px mono. The current slide takes a 2px graphite outline at 2px offset. A held-out slide takes the rubylith wash. Two slides can be laid over each other in a registered overlay to check they read as siblings.
The Tissue (inspector)
282px, hinged from the top with a dashed hinge line, rgba(252,250,242,.70) over the board so the grid reads through. It carries: the selected node's name at Board Title size, its path in 9.5px mono, the prop fields, and the grease-pencil notes.
It lifts. Focus the source and the tissue hinges up off the board, uncovering the whole stage; select a node and it drops back with the notes already on it.
Fields (constrained props)
A scale chip row — equal chips, 1px tick border, 9.5px mono, zero radius, 4px gutters. The active chip inverts to solid graphite on board. A destructive or masking value (Hold out) inverts to solid rubylith instead. There is no raw CSS field and no "advanced" section; adding one is a regression.
Marks (the state system)
State is carried by mark, never by a coloured badge:
| State | Mark |
|---|---|
| Selected (in source) | Wax highlight, bled past the text |
| Selected (node) | Lifts off the board with its waxed shadow |
| Draft | Tissue corner folded over the board's top-right |
| Published | Rubylith rubber stamp, 2px rubylith outline, rubylith-ink word, rotated -7° |
| Held out / disabled / won't compile | Rubylith wash, or 45° hatch at tray scale |
| Finding | Grease-pencil note on the tissue plus a leader line to the node |
| Render frame | Crop marks |
| Alignment | Register targets |
The API probe is the one mark that reports its own absence. Two states, not
three — a check in flight renders as up, because a state that resolves in
milliseconds and cannot be acted on does not earn a form here. Above 640px it is
a tick and a word in the tray's session cell. Below 640px it renders nothing
when the API is up, and a tick with API DOWN when it is not.
That is a deliberate exception to state is carried by mark, and it exists because the mark has no room to carry anything else: the tick is 6 × 1px, so hatching it, filling it or changing its form is invisible, and hiding the word — which is what shipped from 2026-08-31 to 2026-09-01 — left hue as the only signal. The word is the state. Spending width on it only when there is something to say is the way to keep it at the width where it would otherwise be dropped.
The cost, accepted: up becomes absence, so a healthy API and a crashed probe look alike. In a single-account loopback tool where a dead API means every action is already erroring, that is a thin loss against losing the signal entirely.
Notes and findings
A finding is a grease-pencil block on the tissue: a 9px mono heading, the note in 10px mono grease, and a 2px leader line running from the tissue's edge to the node it concerns, tipped with a small arrowhead. The note states the measurement — "Heading runs 3 characters past the measure at xl" — not a severity word.
The Flat File (/posts)
Boards in a grid, each a waxed card: crop marks around the slide thumbnail, then one rigid label block, identical on every board — title (2 lines, clamped), then two mono rows of theme / slide count and date / state. Drafts keep their tissue corner; published boards carry the stamp; a board that will not compile wears the same rubylith the editor uses. No board is styled differently from another; the marks do all the differentiating.
Named Rules
The Tissue Rule. Notes live on an overlay that lifts. The canvas is never permanently occluded by an inspector.
The Measured Note Rule. A finding pins to its node on a leader line and states the number. "Warning" is not a note.
The Fixed Scale Rule. Every slide thumbnail in a set renders at one scale on a shared baseline, so the strip and the flat file are true comparisons.
The One Grid Rule. 26px, everywhere, at every breakpoint. Elements snap to it; the grid never carries information. Corollary — grid-conformance is not fitting. A multiple of 26 is a legal size, never a proof that the size fits: a row of them can still be wider than the viewport. Anything sized in units along an axis that holds several of them is measured in a browser at the narrowest width it claims, or it is not measured.
6. Motion
animejs 4.5.0 is the engine — MIT, no dependencies, framework-agnostic. It was
picked while the UI was still Astro, where one import had to serve both an
Astro <script> and a React island; the SPA kept it because the reasons that
ruled out the alternatives did not change. See
decisions-engineering.md
for why motion-primitives and smoothui were rejected.
One authored moment per surface. On the editor it is the compile: typing settles, the changed lines take the wax briefly, and the stage re-sets. On the tissue it is the hinge — a real rotation about the top edge, not a fade.
Everything else is instant. In particular:
- The canvas never moves. The preview must not animate in a way the renderer cannot reproduce.
- Every animation is gated behind
prefers-reduced-motion; the reduced path is the end state, immediately. - No scattered hover effects, no entrance animation on every panel, no scroll reveals.
7. Browser surfaces
The parts nobody draws still belong to the system. Theme all of them:
text selection (graphite on non-photo-select, non-photo blue at 80% over
paper, #99c5ed: never wax, which marks the selected element), the caret
(graphite), scrollbars (board track,
tick thumb, zero radius), focus rings (2px process-blue, 2px offset, square),
underline offset, and font-variant-numeric: tabular-nums on every column of
digits — slide counts, dates, dimensions, ordinals.
8. Do's and Don'ts
Do:
- Do snap everything to the 26px grid, at every breakpoint (The One Grid Rule).
- Do use a mark for state — rubylith, wax, stamp, tissue corner, hatch — and keep one mark per idea (The One Mark Rule).
- Do render the outcome when offering a typographic choice (The Showing Rule).
- Do keep
graphite-softas the lightest text colour anywhere (The Ink Floor Rule). - Do give findings a leader line and a number (The Measured Note Rule).
- Do scale the preview by integer factors only.
- Do give every interactive element its full state set: default, hover, focus-visible, active, disabled, loading — and design the empty and error states before the happy path.
- Do re-measure contrast in every state that moves a surface or an ink — on a highlight, selected, hover, focus-visible, disabled, held out, error — not once per element on its resting ground.
Don't:
- Don't round a corner. Anywhere. (The Flat Corner Rule.)
- Don't put anything meaningful in non-photo blue, and don't let the grid encode state (The Non-Photo Rule).
- Don't add a third shadow, or apply either of the two as decoration on a resting element (The Two Shadows Rule).
- Don't use Inter in the chrome — it is the artwork's voice, and the separation is the point (The Width-Not-Family Rule).
- Don't add a raw CSS field, a
styleprop, or an "advanced" escape hatch to the inspector. - Don't animate the canvas, and don't scatter hover effects in place of the one authored moment.
- Don't invent a second treatment for a state that already has a mark.
- Don't reintroduce the wizard-era vocabulary: the stepper, the terracotta accent as chrome, the rounded card, the eyebrow label above a section.
9. What the shipped chrome does not carry
The chrome build (2026-08-31) built §1–§7 across every route and left four things described above without an implementation, each blocked on changing a structure rather than clothing. On 2026-09-01 they were split: two were built by the chrome's finish (2026-09-01), and two are dropped — not pending.
Built (74):
- The scale-chip row for constrained props (§5, Fields) is
ui/src/components/ui/ChipRow.tsx. The inspector'ssize,alignandemphasis— the only three scales in the catalogue — pick themselves in a row of equal chips; content props (Image.src,Quote.by,Stat.label) keep their field. The row is also the keyword filter on/postsand the Unread / All switch on/reader, which import it rather than open-coding the CSS as/postsand/articlesonce did. It is a row, and that is the constraint:sizeat five steps is the longest scale the 282px tissue holds, and a scale past about six belongs back in aSelect. - The flat file is a grid of boards (§5).
/postslays its boards outauto-fillat a 13-unit minimum with a one-unit gutter — three across the 1092px column, two around 900, one below ~700 — each board carrying the marks it carried as a row.
Dropped, deliberately:
- The strip (§5). There is no thumbnail strip in the editor; the preview is a single scrolling column of stages. Building one means inventing a structure to serve a decoration.
- The wax half of the compile (§6). "The changed lines take the wax briefly" needs the editor to retain a line diff it does not keep — making the editor hold state purely so something can flash. The moment still animates the stage re-setting, and the wax still marks the selected run, continuously.
The shared reason: a decoration that requires new structure is the point where the spec is asking for more than it is worth. Recording that here so their absence reads as a decision rather than unfinished work.
Still not carried:
- The rubylith chip. §5 gives a masking value (
Hold out) a chip that inverts to solid rubylith. No scale in the Wizard catalogue has such a value, soChipRowdoes not build the variant — an unused variant is one nobody has looked at. The line stands until a scale needs it.
Carried since (75): the tray below ~440px. Its compartments were a fixed
78px each, so at 390px /posts, /articles and /settings sat past the right
edge and at 320px none of the four was reachable at all. The strip now divides
into two courses below 640px and a compartment is a share of its course; every
route is reachable from 240px up, measured in a real Chromium viewport. The
galley's contrast on wax went the same way — both are written up in
chrome.md.
The tissue also hinges on selection change rather than on source focus: selecting a node swings the sheet down with the notes already on it. Lifting it off the board when the source takes focus would move a pane, and the three-pane layout is the editor work's (2026-08-31).