Skip to content

feat(palette): a token for each pattern the prototype of 2026-12-04 draws - #83

Merged
aledbf merged 2 commits into
mainfrom
ready/tokens
Dec 5, 2026
Merged

aledbf merged 2 commits into
mainfrom
ready/tokens

Conversation

@aledbf

@aledbf aledbf commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Why

Closes #77. The prototype of 2026-12-04 draws patterns brand had no token for. A page drawing them would have to write its own hex values and pixel counts. Each pattern is now defined once in palette.toml, read by the generator, and checked wherever it carries text.

What changed

  • Selected and where you are are one tint. --spin-selected and dashboard --selected replace row-selected. The tint is 0.14, light #DDEBF2 against the prototype's #DCEBF3. Every word keeps its own colour on it: text, muted, label, accent_text and the three states each meet their floor. The accent beside the tint is what marks a selection: a 3 px edge on a row. A selected card is its 2 px accent edge only and takes no tint.
  • Ranks, with the prototype's sizes:
    • title: fluid from 32 to 44 px, line height 1.05;
    • verdict: 24/600;
    • figure: on a new 4xl step, 30 px;
    • name and label: 600.
  • Corners by what they hold: radius_xs 4, radius_sm 6, radius 8. Dashboard --radius is now a card's corner, 8.
  • Density: [layout.density.comfortable|compact] sets insets, gaps, rows of one and two lines, a row with its tile, and the tile. Comfortable is on :root; compact is under [data-density='compact']. [layout.space] adds --spin-space-*.
  • New tokens:
    • layout: --spin-bar, --spin-width-card-min, --spin-width-inspector, --spin-width-key (a fact's label), --spin-width-search, --spin-kbd, --spin-kbd-fill-border;
    • a state's mark: --spin-mark;
    • spot: --spin-spot-accent, --spin-spot-grid, --spin-spot-grid-size, --spin-signal-width, --spin-signal-height, --spin-width-figure;
    • tint for a state at rest: --spin-muted-badge / --muted-subtle;
    • usage chart: --spin-usage-{own,lent,used,line}, --spin-usage-width, --spin-usage-height;
    • motion: --spin-blink(-times), --spin-breathe(-times).
  • Generator refusals: it refuses a density missing a size, a missing space step, and any motion that runs 5 s or longer.

Scope

Tokens, the checker and tests. target.html and lab.css only switch to the renamed selected token. #78 redraws the screens (#84).

Tradeoffs

  • The tile's tint stays at 12%, not the prototype's 13%. At 13%, light's warning badge over raised falls to 4.47:1.
  • Text does not shrink in compact. Each rank stays one size.
  • A working task's mark breathes twice when its step changes, not forever (WCAG 2.2.2).
  • t3code.css --radius becomes 8 to match the dashboard's. --control-radius stays 6.

Blast Radius

Every dist/ file except fonts. On the website, the current page's tint (accent-low) gets lighter, from tint.selected. The shooter flags the Inbox's list as 2 px past the fold at this head, because the verdict grew to 24 px. #78 redraws that page, and its shooter prints no problems.

Verification

  • task check passes, and task report lists the new pairs in both themes and every view.
  • New tests fail when a pair or a size is broken on purpose.

🤖 Generated with Claude Code

Base automatically changed from ready/faces to main December 5, 2026 06:41
@aledbf
aledbf enabled auto-merge (rebase) December 5, 2026 06:41
aledbf and others added 2 commits December 5, 2026 03:42
Selected and where you are are one tint (--spin-selected, 0.14), held from
its panel as a plane and with every word in its own colour on it; the
accent beside it says selected. The ranks take the prototype's sizes and
weights: a title fluid from 32 to 44 px, a verdict at 24, a figure on a new
4xl step at 30, names and labels at 600.

New, each defined once in palette.toml and read by the generator: corners
by what they hold (radius_xs 4, radius_sm 6, radius 8), the space steps,
a comfortable and a compact density, the bar, the card's least width and
the inspector's, a key hint's cap and its edge on a fill, the spot's
accent and its grid, muted's tint for a tile at rest, a machine's last
hour in its row, and the cursor's blink and the working mark's breath,
each refused by the generator if it runs for 5 s or longer.

The checker holds each new text pair at its floor; tests hold both
densities, every new name in tokens.css and dashboard.css, the grid
nearer the spot than its border, and a size left out or a movement that
does not stop as refused.

Refs #77

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hour have sizes

The redraw of the Inbox and Workspaces wrote these as pixel counts: a
state's mark (8), the spot's signal segment (36 by 5) and a figure's least
width (118), a fact's label column (96), a list's search field (240), and a
machine's last hour in its row (84 by 30). Each is a size in palette.toml
and a variable in tokens.css and dashboard.css, so the dashboard draws them
at the same sizes.

A selected card is its 2 px edge in the accent, on its own surface, as the
prototype draws it: the tint is the selected row's and the navigation's.

Refs #77

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit f972a25 into main Dec 5, 2026
2 of 4 checks passed
@aledbf
aledbf deleted the ready/tokens branch December 5, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tokens: a role for each pattern the destination draws

1 participant