Redesign the character palettes from the reference cards

Phase 5a-4. The owner chose candidate B of each palette.

- Harvest Moon uses copper from Holo's tail as the accent, cream from
  the tail tip, and red-brown surfaces.
- Crimson Pilot uses plugsuit red as the accent, orange hair, blue eyes,
  and the yellow dress. Borders are a low-chroma wine. Error is a light
  rose red, so it differs from the accent.
- Silver Serpent uses silver from the grey eyes as the accent, Slytherin
  emerald as the second accent, and charcoal surfaces.
- All eight built-in palettes pass every readability rule. The
  known-failure list in contrast.spec.ts is gone.
- characterPalettes.spec.ts measures text selection as the app draws
  it, at most 65% opaque over the page (UI-029).
- Docs: UI-045, and the character references in ui-color.md.

pnpm check passes. pnpm test: 446 of 446 pass. Full smoke suite: 95
passed, 2 known.
This commit is contained in:
Knotty Wyvern
2026-10-28 17:25:51 -07:00
parent a34c1a5dce
commit 35f39e93f3
10 changed files with 63 additions and 47 deletions
+4 -2
View File
@@ -47,6 +47,8 @@ Plugins use the same tokens. [Theme tokens](plugin-development.md#theme-tokens)
- RuneStone takes its accent from the rune glow of the app icon (`src-tauri/icons/icon.png`). Claude takes its colors from the Anthropic brand guide. Sakura takes its colors from the palette image in its data file.
- A text role keeps the hue of its reference color. Change only its lightness until it reaches the readability minimum, and call the result an adaptation.
- Harvest Moon (Holo) uses the current fan art. Removed images do not count for later palette decisions.
- Crimson Pilot (Asuka) and Silver Serpent (Malfoid) use their reference cards. For Malfoid, the books win over fan art, so the eyes are grey.
- A character color goes to the accents, the selection, and the syntax roles. Surfaces and borders get low-chroma tints of the character, so status colors stay visible.
- Take the colors of the character. Exclude scenery, lighting, alternate clothing, and unrelated details.
- The trading screenshot and the Bloomberg example show clear information and state distinctions. They do not ask for a terminal-like appearance.
@@ -84,8 +86,8 @@ Each surface is the color that the app draws: a translucent role is composited o
| `light-page` | In a light palette, `bg` is lighter than `bg-elevated` and `bg-active` | — |
`accent` on `selection` is exempt from the 4.5:1 text check. Run the tests with `pnpm test`.
The test lists the failures of current palettes as `todo`. A palette change removes its entries. The test fails when a listed rule passes, so the list cannot go stale.
`tests/unit/theme/characterPalettes.spec.ts` adds the checks of each character palette, for example over image tints.
Every built-in palette passes every rule. A palette that fails a rule fails the test.
`tests/unit/theme/characterPalettes.spec.ts` adds the checks of each character palette, for example over image tints. It measures text selection as the app draws it: at most 65% opaque over the page.
Over a user image, contrast depends on the composite surface. Measure the 82% and 90% tints over the image that the change uses. Do not claim contrast over every possible image or overlay.
When contrast fails, change the foreground, background, surface, or role before you reduce color strength.