Skip to content

feat(palette): a spot plane for a page's verdict, and a state on its tint - #73

Merged
aledbf merged 1 commit into
mainfrom
look/spot-surface
Dec 4, 2026
Merged

aledbf merged 1 commit into
mainfrom
look/spot-surface

Conversation

@aledbf

@aledbf aledbf commented Dec 4, 2026

Copy link
Copy Markdown
Member

Why

Closes #70. A page had two planes one step apart and a state as an 8 px mark, so its verdict read at a row's weight. tint.badge and tint.selected were declared and drawn nowhere.

What changed

  • Each theme gains spot, spot_text, spot_muted and spot_border: one plane per page for its verdict, dark in either theme. In dark it is raised and bordered (#1B263E); in light it is the mark's navy (#111827).
  • A state on the spot takes dark's colour in both themes: --spin-spot-{success,warning,error}.
  • The checker holds spot_text at 7:1, spot_muted and dark's states at 4.5:1, spot_border at the line tier on the spot and the page, and the spot apart from the page. It holds a chip's mark at 3:1 on its tint over a panel, a hovered row and a selected row: 368 pairs, up from 328. Four of the new pairs have planted-break tests.
  • tokens.css: --spin-spot, --spin-spot-text, --spin-spot-muted, --spin-spot-border, the three --spin-spot-* states, --spin-row-selected. dashboard.css: --spot, --spot-foreground, --spot-muted, --spot-border, --spot-{success,warning,error}, --row-selected.
  • The laboratory: a row's state is a chip, its mark on its tint with its word beside it. A selected row is --spin-row-selected with a 2 px accent edge. The dashboard sample draws a spot verdict.

Scope

Tokens, the checker and the laboratory. Stacked on #72. When #72 merges this PR retargets to main.

Tradeoffs

  • Light's states fail on the navy (warning is 2.45:1), so the spot borrows dark's. One rule covers both themes.
  • A word in its state's colour fails on dark's selected tint, so a chip puts the colour on the mark and the word in the text colour. A header's or a toast's badge keeps the coloured word, which holds 4.5:1 there.
  • Muted text on dark's selected tint is 4.13:1, so every word on a selected row is in the text colour instead of lowering the floor.
  • The spot is opt-in in the laboratory (data-verdict), so the five-second test's stimulus stays without it.

Blast Radius

New variables only. five-seconds.html and recognition.html share the laboratory's list, so their rows now draw chips. Their files are not touched.

Verification

  • task check passes with 368 pairs. The lowest new pair is dark's error mark on its tint over the selected row: 3.39:1, floor 3.
  • Looked at the laboratory's sample in dark, light, deuteranopia and tritanopia.

🤖 Generated with Claude Code

Base automatically changed from look/type-ranks to main December 4, 2026 23:10
@aledbf
aledbf enabled auto-merge (rebase) December 4, 2026 23:10
A console page had two planes one lightness step apart and a state as
an 8 px mark, so its verdict - whether anything needs the person - read
at the weight of a row. Nothing on a page was a focal point.

Each theme gains the spot: spot, spot_text, spot_muted and spot_border,
one plane a page has for its verdict, the counts the page computes
beside it. It is a dark plane in either theme: raised with a border in
dark, the mark's navy under its frost in light, which is the one surface
the navy now is. So its words are the same in both, and a state on it
takes dark's colour, written as --spin-spot-success, -warning and
-error. It holds words and figures, never a control. The checker holds
its text at 7:1, what explains it and a label on it at 4.5:1, dark's
states on it at 4.5:1, its rules and its edge at the line floor and the
plane from the page: 368 pairs.

tint.badge is drawn now. A row's state is a chip, the state's mark on
its tint with its word beside it in the text's colour, held at 3:1 over
a panel, a row under the pointer and a selected row; a header's or a
toast's badge keeps the word in its colour. A selected row is the accent
at tint.selected over its panel (--spin-row-selected, --row-selected)
with an edge in the accent, and every word on it is in the text's
colour: the muted text is 4.13:1 on dark's.

dashboard.css carries --spot, --spot-foreground, --spot-muted,
--spot-border and the spot's states. The laboratory's workspaces list
draws a spot verdict and the chips; its tests leave the verdict out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf force-pushed the look/spot-surface branch from 7a083d9 to bd85e49 Compare December 4, 2026 23:13
@aledbf
aledbf merged commit e53aab7 into main Dec 4, 2026
2 checks passed
@aledbf
aledbf deleted the look/spot-surface branch December 4, 2026 23:13
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.

surfaces: a spot plane for a page's verdict, and a state on its tint

1 participant