Skip to content

Board Tray look, dark by default, and AA contrast on every page (T349) - #288

Merged
erickb336 merged 2 commits into
mainfrom
sage/t349-board-tray
Oct 22, 2026
Merged

erickb336 merged 2 commits into
mainfrom
sage/t349-board-tray

Conversation

@erickb336

Copy link
Copy Markdown
Owner

What this is

The board pages take the approved Tray look (direction B of T349) and open in the dark theme by default. The information and flows do not change.

Changes

  • Look. Cards sit in grey trays inside one rounded page panel. The page panel goes from edge to edge below 700 px. Motion is quiet (a 160 ms fade and a 1 px lift on hover), and reduced motion turns it off. The font stays the system font.
  • Dark by default. The two prefers-color-scheme branches are gone. Light shows only for a saved light choice, or when the switch is flipped. The head script, the switch, storage and the CSP do not change.
  • Contrast. The new tokens fix the two Agents page bugs: the Claude tag in light (was 4.1:1) and "helper of" in dark (was 4.46:1).
  • CSS size. The board CSS goes from 28,433 B to 29,172 B (+739 B; gzip +564 B). The tokens changed in place, and each Tray override merged into its existing rule.
  • Credit. affectUI (MIT) gets credit in a source comment, with the full permission notice, and in the README credits.

Tests

  • New shared helper scripts/fixtures/contrast.mjs: measures every text against the colours painted behind it. A gradient counts by its worst stop, and url() is refused.
  • New: AA contrast for every text on the board, a task page, the programs list, a program page and the Agents page, dark and light, at 375 and 1280 px.
  • New: dark default on light and dark systems, a saved light choice wins, storage that throws still shows dark, and the snapshot with scripts off shows dark.
  • New: the page panel spans 0 to 375 px on a phone.
  • New: a CSP test (one bare style element, no style attribute, no url(, @import or @font-face).
  • Changed: the theme tests now read the exported token values, and loop on the theme with the switch.
  • On the base commit the new tests fail. The contrast sweep reports exactly the two Agents page texts.

All pages use SAMPLE DATA from the test fixtures.

🤖 Generated with Claude Code

erickb336 and others added 2 commits October 20, 2026 07:17
- The board CSS takes the Tray direction in place: new tokens (shell, ring,
  pill, lift, ink, link, ease) in both themes, each override merged into its
  rule, the inset page shell, edge to edge below 700 px, and no hover lift
  or press scale with reduced motion.
- The page is dark until you choose light; the system theme no longer
  chooses. A saved choice wins, and the switch works with scripts off.
- The new provider tag and faint colours fix the two Agents page contrast
  bugs (the Claude tag in light, "helper of" in dark).
- A shared test helper measures the contrast of every text, with gradients
  by their worst stop. New tests: contrast on five pages in both themes at
  375 and 1280 px, the dark default, the edge-to-edge shell, and the CSP.
- Credit for affectUI values (MIT) in the source and the README.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…outlines (T349)

- The offline snapshot's task, programs and program pages sit in the page
  shell, as the server pages do; edge to edge below 700 px.
- A new --edge token (3:1 against the shell and the tray in both themes)
  draws the edge of the theme switch, the picker, the filters, the chips,
  and the chosen tab and Who pill.
- Cards, task page sections, program cards and the rules get a transparent
  1 px border (padding 1 px less, so nothing moves), and a card that needs
  you keeps a double frame in forced colours.
- Tests: the snapshot pages in the shell and contrast tests, a 3:1 control
  edge check with a new edge measure in the contrast helper, a forced-colours
  emulation test, and a saved dark choice that flips to light.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

1 participant