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.
|
||||
|
||||
+4
-2
@@ -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.
|
||||
|
||||
|
||||
+1
-1
@@ -190,7 +190,7 @@ Decisions: [UI-005](design-decisions.md#ui-005--heading-spacing).
|
||||
- A saved choice for a removed palette returns to RuneStone and keeps its mode and background settings. A renamed palette keeps its colors and backgrounds.
|
||||
- The theme preview includes code colors.
|
||||
|
||||
Decisions: [UI-009](design-decisions.md#ui-009--character-theme-appearances), [UI-012](design-decisions.md#ui-012--retain-three-stronger-character-themes), [UI-018](design-decisions.md#ui-018--named-palettes-and-local-fonts), [UI-023](design-decisions.md#ui-023--separate-theme-font-roles), [UI-024](design-decisions.md#ui-024--assertive-functional-color-by-default), [UI-044](design-decisions.md#ui-044--core-palettes-and-the-lightest-page).
|
||||
Decisions: [UI-009](design-decisions.md#ui-009--character-theme-appearances), [UI-012](design-decisions.md#ui-012--retain-three-stronger-character-themes), [UI-018](design-decisions.md#ui-018--named-palettes-and-local-fonts), [UI-023](design-decisions.md#ui-023--separate-theme-font-roles), [UI-024](design-decisions.md#ui-024--assertive-functional-color-by-default), [UI-044](design-decisions.md#ui-044--core-palettes-and-the-lightest-page), [UI-045](design-decisions.md#ui-045--character-palettes-from-the-reference-cards).
|
||||
|
||||
### Surfaces over images
|
||||
|
||||
|
||||
Reference in New Issue
Block a user