For discussion. Framed panes are the product: the Codebook lens sidebar captured from a running
serve --dev (24 Nov 2026, a private trial run renamed “Demo study”) at shipped CSS and its captured width,
240 px. Only the count's style changes from frame to frame. One row is added to every frame so each state is
on screen: Nielsen, switched off, with 128 waiting. The real counts are UXR 9 (the selected row) and Laws of UX 5.
Hatched blocks are commentary. Each frame's bar prints the count's contrast, live, against whatever is behind
it (the row, the selection, the sidebar); under 4.5:1 is in red. Generated by codebook-pending-count.gen.py;
regenerate, don't edit.
On: the outlined pill in ink. Off: the same pill at the
switched-off opacity (--bn-opacity-off, 0.5, the card's own knock-back). Selected and on (the codebook whose
page is open): white on accent, regular weight. Selected and off: the off pill, as any switched-off row (owner, 24 Nov). Zero: nothing shows. Nothing jumps (owner, 24 Nov): every state draws the same box, the
switch's 15 px height and radius, at least 15 px wide, regular weight, centred on the switch; only fill, figure colour
and opacity change. And the count sits in a slot sized for three figures, so the title keeps one width from 1 to 999,
and at zero too while the empty slot is kept (measured: 142.1 px for every count on Nielsen's row, the row 67.9 px
throughout). The controls also flip the off state to the theme's own muting rule (muted ink, not opacity:
theme/gotchas.md, “Mute readable text with a colour token, never with opacity”), which
clears 4.5:1 except on the selected row in light mode (4.2:1), and let the title have the slot's space back at zero.
Both frames share one state:
click a row to select it, click a switch to turn it on or off, set the counts on the right; Tab and Space work too.
Read the bars: white on accent clears 4.5:1 only in Edo light (6.9:1); default light is 4.0:1, Edo dark 2.9:1,
default dark 3.7:1. The switched-off pill at half opacity is under 4.5:1 in all four: 3.1:1 Edo light, 4.3:1 Edo dark, 3.3:1
default light, 4.3:1 default dark; selected and off, on the selection's darker capsule, 2.9 to 4.0:1 (the on
pill is 11:1 or more everywhere). WCAG excuses text in a disabled
control, but a switched-off row is still a live link to its page, so the excuse probably does not cover it. Measured
24 Nov at the Mac scale, micro size.
The shipped pill disappears
on the selected row. Its fill is the badge background, and the selected row's capsule is nearly the same colour:
#f3f4f6 on #efefef in the default palette, #e8dfc9 on #e6ddc9 in Edo,
the Mac's default. The figure stays readable; the pill's shape does not, so the selected codebook's count reads as a bare
number and every other row's as a pill.
Contrast, the lowest of the three rows, against 4.5:1 (text this small has no large-text allowance):
| style | Edo light | Edo dark | default light | default dark |
|---|---|---|---|---|
| shipped pill, bold pill, outlined pill | 8.8+ | 7.3+ | 9.0+ | 9.6+ |
| bare, ink (regular or bold) | 11.8 | 11.3 | 15.1 | 11.4 |
| bare, muted (regular or bold) | 4.2 selected row | 5.5 | 4.2 selected row | 5.6 |
| bare, muted; ink when selected | 5.1 | 6.3 | 4.6 | 6.3 |
| white on accent | 6.9 | 2.9 | 4.0 | 3.7 |
| white on muted | 5.7 | 2.6 | 4.8 | 2.5 |
| inverted | 15.4 | 13.8 | 17.4 | 13.8 |
| accent on pale accent | 4.2 | 4.1 | 2.9 | 3.3 |
Muted ink is what the codebook page already uses for a tentative count (the tag rows: accepted in ink,
tentative-only in muted, TagRow.tsx), so a muted bare number says the same thing in the same colour in both
places, but it fails on the selected row in light mode, where the capsule darkens what is behind it. Recent macOS
sidebars (Mail's unread counts, for one) draw a plain grey figure, not a capsule: worth a glance at your own Mail.
White on a coloured circle is the notification badge: it says “unread, act now”, louder than proposals need (they
wait, nothing is lost), and it fails in three of four schemes. Bold helps a bare number hold its own beside the
switch at micro size; try the caption size in the bar too.
My pick: bare, muted; ink when selected, with the label. It is the page's tentative colour wherever it passes, the selected row's ink where muted would not, never a shape that vanishes, and not needy. If one colour everywhere matters more than matching the page, bare, ink passes in every scheme.
The number of a codebook's proposals still waiting for review (D10): its tentative tags. Shipped as a grey pill in the badge colours, micro size, regular weight, between the title and the switch (
organisms/codebook-v2.css:96,CodebookV2Sidebar.tsx:199). It has no tooltip and no spoken label: VoiceOver reads a stray “9” after the codebook's name. Every frame but the first adds both, from the shipped keycodebook.tentativeCount(“9 tentative”, 21 locales); hover a count to see it. The style is the question here; the label is owed whichever style wins.