Skip to content

Set the interface's qualifiers in one muted ink, held to AA on every surface - #4779

Merged
max-sixty merged 10 commits into
mainfrom
list-ui-fixes
Oct 30, 2026
Merged

max-sixty merged 10 commits into
mainfrom
list-ui-fixes

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Leaf's interface now sets the words that qualify a line in one ink, the palette's interface muted (--muted-2), and that ink holds WCAG AA's 4.5:1 on every surface the layer paints, in both schemes. Before, the interface used three qualifier inks a step apart: the document's --muted (26 interface rules), --muted-2 (10), and the floating panel's own ink at 72% (24 uses). So a list's row ends and group headings were a step dimmer than the panel's option descriptions, filters and plan times beside them, and a theme that set --muted-2 restyled none of the panel.

What changed

  • Interface rules take --muted-2. Every rule that selects an lf- class and named --muted now names --muted-2, the ink .lf-ref already argued for: --muted is the document's, which a theme may set for its prose alone, and it reads 4.43:1 on a chosen row's tint in the light scheme. The reading theme's prose (captions, eyebrows, table heads) keeps --muted.
  • The panel's qualifier ink is gone. --lf-fp-muted (ink at 72%) is deleted and its 24 uses name --muted-2; a mark's action (.lf-mark-action), which mixed ink at 72% too, follows. The panel keeps --lf-fp-quiet (ink at 62%) for the words standing in an empty field, a step dimmer than its qualifiers, which the user chose and its header records.
  • --muted-2 is light-dark(#676257, #b1aa9d) (was #6d6960, #988f7f). The darkest ground it meets is a Threads row washed by its linked passage's hover (--mark-hover), where it now reads 4.62:1 light and 4.60:1 dark; the old values read 4.16:1 and 3.71:1 there in this change's first push, and the old dark value read 4.18:1 on the accent's tint on main.

Contrast on the panel's ground:

Ink Light Dark
panel qualifiers, were ink 72% 6.63 → 5.76 7.06 → 6.77
interface rules, were --muted 5.10 → 5.76 5.46 → 6.77
--muted-2's existing uses 5.19 → 5.76 4.88 → 6.77

Left as they are: the panel's quiet status ink, the tone-coloured statuses (a request at 84% of its tone's ink and the blocked report at the quiet strength of the danger's, dimmed on purpose as floating-panel.css records), the working status's sheen, and a tooltip's second line at paper 72% on the inked tip.

What changes on screen

The panel's qualifiers keep nearly their lightness (L* 38 → 42 light, 70 → 70 dark). Every other list's row ends, group headings and descriptions gain contrast to match them (light L* 45 → 42, dark 63 → 70), so the interface draws one qualifier ink.

Checks

  • leaf-dev stills on 30 states (panel views, threads, dialogs, panes; light and dark) against the voices change: every style difference is a text, border or outline colour moving onto --muted-2's value, apart from one live-data margin in the corpus's generated document; five states recaptured after the review fix show the same.
  • Contrast computed from the palette's values (WCAG relative luminance, the panel's and paper's grounds, the ok, accent, warn and danger tints, a hovered panel row and the passage-hover wash); --muted-2's lowest is 4.60:1, on the dark passage-hover wash.
  • tests/model/test_interface_voices.py, the theme and device tests and two On me tests pass; pnpm run check:browser passes. test_motion_preference_changes_are_heard_without_reloading fails locally on this branch and also on a clean main checkout, so it isn't this change.

This was written by Claude Code on behalf of max-sixty

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shared ink still misses AA on the passage-highlight hover wash in Threads.

Comment thread browser/base.css Resolved
@max-sixty max-sixty changed the title Set the interface's secondary words in its own muted ink, held to AA on every surface Set the interface's qualifiers in one muted ink, held to AA on every surface Oct 30, 2026
@max-sixty
max-sixty merged commit 2361937 into main Oct 30, 2026
6 checks passed
@max-sixty
max-sixty deleted the list-ui-fixes branch October 30, 2026 20:18
max-sixty added a commit that referenced this pull request Oct 30, 2026
…es' rules once (#4784)

A cleanup pass over #4774 and #4779, from four reviews of their diff
(reuse, simplification, efficiency, altitude). Nothing renders
differently: `leaf-dev stills` on eight states covering every rule
touched reports no computed-style difference (one state's pixels differ
by the page scrolling behind a thread card, which recurs on unchanged
code).

- **Two rules spelled out a voice.** A thread's news press and a margin
entry set `font: var(--voice-small); font-weight: 600`, which is
`--voice-heading`; they now name it.
- **Three package rules copied the label voice.** The sample's note, a
stacked tab's name and the reading theme's panel name wrote `600
var(--t-6) / 1.3 var(--sans)`, the value of `--voice-label`, beside
comments saying they take the label voice. They now name
`--voice-label`, so a change to the voice reaches them; the voices check
doesn't, since they select no `lf-` class.
- **Comments state the rule once.** `base.css`'s voices block dropped
the drift history the test's docstring and #4774's message already hold,
and one of the two pointers between the root's thread voices and the
block. The floating panel's quiet ink is described in its header only,
and About's rule comment no longer describes the old rendering.
- **The voices test** drops a filter that `declarations()` already
guarantees.

> _This was written by Claude Code on behalf of max-sixty_
max-sixty added a commit that referenced this pull request Oct 31, 2026
…d word in one ink (#4791)

Three changes close the remaining ways a rule of Leaf's interface could
set a face or ink of its own beside the voices (`--voice-*`, base.css),
each chosen on the session's Leaf page.

### A voice owns its weight

A rule that names a voice no longer adds a weight to it: `font:
var(--voice-small); font-weight: 500` was a face without a name, and
three rules spelled that one. Each such rule now names a voice:

- `--voice-status` (500, small): a passage's status, a drawing's
reference, a summary's label.
- `--voice-error` (500, ui): why a box refused what was typed in it.
- `--voice-goal` (600, the message face): a plan's goal over its steps.
- `--voice-name` (600, compact), whose comment now covers the page's
state atop the leaf's menu as well as a message's author.

A run that keeps its holder's voice may still set 400, 500 or 600, since
some runs take their size from wherever they stand by design: the inline
face (a press read as part of its line, chosen on 28 October) and a
pending thread name inside whatever title holds it.

### A box centres its words by layout

Badges centred their count with a line as tall as the badge, a leading
outside every voice. The margin's count and the folded leaf's badge are
now grids that centre their words, and the key badges keep the flex
centring they already had and drop their line. The floating panel's
search field and its field's error sit in `--lf-line` by a padding of
half what the voice's line (`1lh`) leaves, where they set a 22px line.
The command reference's wrapping key badge loses its `padding-block` and
its line; a badge that wraps onto two lines stands about 1.4px taller.

### One muted ink

`--muted-2` is folded into `--muted`, at the values #4779 gave it
(`light-dark(#676257, #b1aa9d)`). It began in the first theme as a
fainter third grey for times and ages; the two had since converged, and
only the "-2" held the 4.5:1 contrast the interface needs. The
document's old `--muted` read under AA on five of the layer's tints in
light (4.09 to 4.47:1). Now the page's prose and every package read the
AA values too, so captions, quotes and table heads gain contrast: 5.10 →
5.76:1 on paper in light and 6.21 → 7.70:1 in dark, where they turn
visibly lighter.

### The check

`tests/model/test_interface_voices.py` now fails a font weight in a rule
that names a voice, and any line height other than `inherit`, `0`, `1`
or the voices' shared leading (`var(--lf-ui-lh)`). Reintroducing `font:
var(--voice-small); font-weight: 500` on `.lf-summary-label` and
`line-height: 14px` on `.lf-margin-count` fails it with both named.

### Checks

- `leaf-dev stills` on 34 states (panel views, threads, dialogs, the
command reference, margin badges, prose pages; light, dark, phone and
touch): no face appears on one side only. Apart from the muted ink's two
values, every style difference is a badge's or field's line and
centring, and the command reference's key badges. Two states differ by
more than antialiasing (a pixel channel over 60): About, by its
fingerprint and runtime ids, and the command reference, whose rows stand
0.16px shorter (29 → 28.84) because a key badge's baseline moved by that
much, so a list of thirteen rows ends 2px higher. `on-me` adds the
corpus's live generated document, and `plan-card-reply` a target trace
drawn `fixed`, neither from this change.
- The margin's count centres its digits on the box's middle in Chromium
and Firefox alike (`leaf-dev probe --browser firefox`), as before; the
panel's search surface stays 32px in both.
- `tests/model/test_interface_voices.py` and
`tests/browser/test_composition.py` (the theme fixture that set both
muted inks) pass.

> _This was written by Claude Code on behalf of max-sixty_
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.

2 participants