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:
@@ -849,3 +849,24 @@ Native shell, background image, and desktop acceptance remain open.
|
||||
- Evidence: The comparison sheets and `readability.md` in `output/phase-5a/5a-3/` in the main checkout. `tests/unit/theme/contrast.spec.ts` lists no failures for these palettes.
|
||||
- Replaces / replaced by: None.
|
||||
- Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open.
|
||||
|
||||
### UI-045 — Character palettes from the reference cards
|
||||
|
||||
- Type: Rule change
|
||||
- Date: 2026-10-28
|
||||
- Status: Implemented for user review
|
||||
- Decision source: The approved Phase 5a plan, stage 5a-4, and the reference cards 0344ab0f (Holo), abada65c (Asuka), and 6d09b547 (Malfoid). The owner chose candidate B of each palette on 2026-10-28.
|
||||
- Previous rule: Crimson Pilot used a saturated red for every border, and its accent and error were nearly the same red. In Harvest Moon, the accent and the warn color were both amber. In Silver Serpent, the accent and the ok color were both green. Harvest Moon and Silver Serpent errors were below 4.5:1 on panels.
|
||||
- New rule: A character color goes to the accents, the selection, and the syntax roles. Surfaces and borders get low-chroma tints of the character. Each status color differs from the accent. Every character palette passes all readability rules.
|
||||
- Harvest Moon (Tail): copper from the tail `#f38c48` as the accent, cream from the tail tip as the second accent, red from the eyes for numbers, and red-brown surfaces. Every identity role stays warm.
|
||||
- Crimson Pilot (Plugsuit): plugsuit red `#ff564e` as the accent, orange hair as the second accent, blue eyes for types, the yellow dress for strings, wine surfaces, and a navy selection. Error is a light rose red `#ff8cc1`, so it differs from the accent.
|
||||
- Silver Serpent (Silver): silver from the grey eyes `#bfd4e7` as the accent, Slytherin emerald as the second accent, platinum hair for strings, and charcoal surfaces from the robes.
|
||||
- Method: A script measured the main hue clusters of the reference images, without white backgrounds, the Gryffindor scarf image, and the casual clothes image. The clusters include skin and backgrounds, so each color is an adaptation, not a sample. Text roles keep their hue and change only lightness to reach 4.5:1.
|
||||
- Test change: `tests/unit/theme/characterPalettes.spec.ts` measures text selection as the app draws it, at most 65% opaque over the page ([UI-029](#ui-029--text-selection-transparency)). It measured the raw selection color before. The known-failure list in `contrast.spec.ts` is gone, because no palette fails a rule.
|
||||
- Reason: Status colors stand out from the frame. Each theme keeps the colors of its character.
|
||||
- Scope: Harvest Moon, Crimson Pilot, and Silver Serpent.
|
||||
- Shared implementation: `themes/harvestMoon.ts`, `themes/crimsonPilot.ts`, and `themes/silverSerpent.ts`.
|
||||
- Visible changes: The colors of the three palettes. File, table, and search-match selections keep the selection color at 65%, as before.
|
||||
- Evidence: The comparison sheets and `readability.md` in `output/phase-5a/5a-4/` in the main checkout.
|
||||
- Replaces / replaced by: The palette values of [UI-012](#ui-012--retain-three-stronger-character-themes). Its theme set and names remain.
|
||||
- Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open. The KnottyWyvern Portal still uses the earlier Harvest Moon colors.
|
||||
|
||||
Reference in New Issue
Block a user