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.
23 lines
1.4 KiB
TypeScript
23 lines
1.4 KiB
TypeScript
import type { BuiltinTheme } from './index.ts';
|
|
|
|
// "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',
|
|
legacyIds: ['malfoid'],
|
|
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: '#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;
|