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
+10 -7
View File
@@ -1,6 +1,8 @@
import type { BuiltinTheme } from './index.ts';
// Asuka Langley Soryu (Neon Genesis Evangelion).
// Asuka Langley Soryu (Neon Genesis Evangelion), from card abada65c. Plugsuit (stage 5a-4): plugsuit red is the accent,
// orange hair is the second accent, blue eyes mark types, and the yellow dress marks strings. Surfaces and borders are
// low-chroma wine, and the selection is navy. Error is a light rose red, so it differs from the red accent.
export const crimsonPilot = {
id: 'crimson-pilot' as const,
name: 'Crimson Pilot',
@@ -8,12 +10,13 @@ export const crimsonPilot = {
fonts: { ui: 'Bahnschrift, "Trebuchet MS", Arial, sans-serif', prose: '"Segoe UI", "Helvetica Neue", Arial, sans-serif', heading: 'Bahnschrift, "Trebuchet MS", Arial, sans-serif' },
variants: {
dark: {
bg: '#210b10', 'bg-elevated': '#341018', 'bg-active': '#461620', border: '#d93840',
text: '#f4ece1', 'text-dim': '#e0b48e', 'text-strong': '#ffffff',
accent: '#ff5b50', 'accent-2': '#ff9b18', selection: '#122b45', 'item-selection-bg': '#122b45a6',
error: '#f44747', 'warn-hot': '#d68a00', warn: '#cca700', ok: '#89d185', special: '#c792ea',
'syntax-keyword': '#ff5b50', 'syntax-variable': '#f4ece1', 'syntax-property': '#efb278', 'syntax-constant': '#83dc52', 'syntax-punctuation': '#83dc52', 'syntax-string': '#ffe066', 'syntax-number': '#ff8a3d',
'syntax-comment': '#e0b48e', 'syntax-type': '#64c9ff', 'syntax-function': '#559fff',
bg: '#1b0d0e', 'bg-elevated': '#261415', 'bg-active': '#3c2224', border: '#4d2e30',
text: '#f1e9e3', 'text-dim': '#ccb0a7', 'text-strong': '#fefbf8',
accent: '#ff564e', 'accent-2': '#fe9052', selection: '#0d2e55', 'item-selection-bg': '#0d2e55a6',
error: '#ff8cc1', 'warn-hot': '#fea92f', warn: '#f2de3c', ok: '#5cdc78', special: '#56acf0',
'syntax-keyword': '#fe564e', 'syntax-string': '#f5db59', 'syntax-number': '#fe9052', 'syntax-comment': '#bfa49b',
'syntax-type': '#56acf0', 'syntax-function': '#85cff3', 'syntax-property': '#ecb69f', 'syntax-variable': '#f1e9e3',
'syntax-constant': '#faab3f', 'syntax-punctuation': '#b69690', 'syntax-heading': '#fe564e',
},
},
} satisfies BuiltinTheme;
+10 -8
View File
@@ -1,7 +1,8 @@
import type { BuiltinTheme } from './index.ts';
// Holo (Spice and Wolf), from the current fan art: copper hair, brown tail, cream fur, and red eyes and apple.
// Amber carries active and selected states. Green scenery is outside this palette.
// Holo (Spice and Wolf), from the current fan art on card 0344ab0f. Tail (stage 5a-4): copper from the tail is the accent,
// cream from the tail tip is the second accent, and red from the eyes marks numbers. Surfaces are low-chroma red-brown.
// Every identity role stays warm. Green scenery is outside this palette.
export const harvestMoon = {
id: 'harvest-moon' as const,
name: 'Harvest Moon',
@@ -9,12 +10,13 @@ export const harvestMoon = {
fonts: { ui: 'Candara, "Trebuchet MS", "Segoe UI", sans-serif', prose: 'Constantia, Georgia, "Times New Roman", serif', heading: 'Constantia, Georgia, "Times New Roman", serif' },
variants: {
dark: {
bg: '#251b17', 'bg-elevated': '#382820', 'bg-active': '#40291c', border: '#ae744a',
text: '#eee3d1', 'text-dim': '#d3aa8b', 'text-strong': '#fff4df',
accent: '#ffb52e', 'accent-2': '#ff6740', selection: '#482714', 'item-selection-bg': '#482714a6',
error: '#f44747', 'warn-hot': '#d68a00', warn: '#cca700', ok: '#89d185', special: '#c792ea',
'syntax-keyword': '#ff6740', 'syntax-variable': '#eee3d1', 'syntax-property': '#e5ae7e', 'syntax-constant': '#ff8d55', 'syntax-punctuation': '#ff8d55', 'syntax-string': '#ffc45b', 'syntax-number': '#ffffff',
'syntax-comment': '#d3aa8b', 'syntax-type': '#ffe19a', 'syntax-function': '#ffb52e',
bg: '#1c0f0a', 'bg-elevated': '#261611', 'bg-active': '#3c241c', border: '#4f3228',
text: '#f4e6d2', 'text-dim': '#cfb09d', 'text-strong': '#fff7eb',
accent: '#f38c48', 'accent-2': '#f5e2c0', selection: '#522814', 'item-selection-bg': '#522814a6',
error: '#ff5260', 'warn-hot': '#f8a13f', warn: '#f2d935', ok: '#5edb81', special: '#f3625d',
'syntax-keyword': '#f38c48', 'syntax-string': '#f6d389', 'syntax-number': '#fa6863', 'syntax-comment': '#bc9e8a',
'syntax-type': '#fbbd6e', 'syntax-function': '#f5e2c0', 'syntax-property': '#eaae93', 'syntax-variable': '#f4e6d2',
'syntax-constant': '#feb16a', 'syntax-punctuation': '#b99683', 'syntax-heading': '#f38c48',
},
},
} satisfies BuiltinTheme;
+10 -7
View File
@@ -1,6 +1,8 @@
import type { BuiltinTheme } from './index.ts';
// "Malfoid", a fan creation: Draco Malfoy written as a female character. The books win over fan art.
// "Malfoid", a fan creation: Draco Malfoy written as a female character, from card 6d09b547. The books win over fan art,
// so the eyes are grey. Silver (stage 5a-4): silver from the eyes is the accent, Slytherin emerald is the second accent,
// platinum hair marks strings, and the surfaces are the charcoal of the robes.
export const silverSerpent = {
id: 'silver-serpent' as const,
name: 'Silver Serpent',
@@ -8,12 +10,13 @@ export const silverSerpent = {
fonts: { ui: 'Corbel, "Segoe UI", "Helvetica Neue", Arial, sans-serif', prose: '"Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif', heading: '"Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif' },
variants: {
dark: {
bg: '#151c1b', 'bg-elevated': '#1d3029', 'bg-active': '#223a32', border: '#528f74',
text: '#e3e7eb', 'text-dim': '#bec8ce', 'text-strong': '#fff5d5',
accent: '#36e395', 'accent-2': '#c5d5e2', selection: '#13533a', 'item-selection-bg': '#13533aa6',
error: '#f44747', 'warn-hot': '#d68a00', warn: '#cca700', ok: '#89d185', special: '#c792ea',
'syntax-keyword': '#36e395', 'syntax-variable': '#e3e7eb', 'syntax-property': '#f4c6ae', 'syntax-constant': '#edc45f', 'syntax-punctuation': '#edc45f', 'syntax-string': '#a7e7c4', 'syntax-number': '#ffb79b',
'syntax-comment': '#bec8ce', 'syntax-type': '#ffffff', 'syntax-function': '#61dfbb',
bg: '#141619', 'bg-elevated': '#1c1e21', 'bg-active': '#2b3034', border: '#3b4046',
text: '#e5e8ec', 'text-dim': '#b3b8be', 'text-strong': '#fcf9ea',
accent: '#bfd4e7', 'accent-2': '#31d78c', selection: '#0c6944', 'item-selection-bg': '#0c6944a6',
error: '#ff645f', 'warn-hot': '#fd923e', warn: '#fec84b', ok: '#5cdc78', special: '#fb9989',
'syntax-keyword': '#31d78c', 'syntax-string': '#f0de99', 'syntax-number': '#fda293', 'syntax-comment': '#b2b7bd',
'syntax-type': '#c5dbee', 'syntax-function': '#5addc7', 'syntax-property': '#a4c2dc', 'syntax-variable': '#e5e8ec',
'syntax-constant': '#f2c86c', 'syntax-punctuation': '#b2b7bd', 'syntax-heading': '#31d78c',
},
},
} satisfies BuiltinTheme;