Settings -> Appearance replaces the palette selects with a Dark theme and a
Light theme picker, always shown, each listing every supported theme in two
groups by kind with the side's own kind first. Picking one of the seven known
pairs fills the other side with its sibling while that side is still the
default or the previous pick's sibling (pickTheme); a side chosen by hand is
kept. Any theme fits either side, so a dark theme chosen for light mode draws
dark, as in herdr.
The theme names are a label map the i18n test reads; the brand names stay as
their projects write them, the color words Amber and Charcoal stay translated.
The stale Colors, Light colors, Dark colors and System-mode strings leave the
three dictionaries, and the Appearance search aliases drop "palette". Settings
selects grow to a finger-sized target on touch screens.
The settings-pages demo regression drives the new pickers for the six legacy
combos, then Tokyo Night with its pre-filled Tokyo Night Day across the mode
toggle, a dark theme on the light side under Light mode, and a hand-chosen
side that is not refilled; the composer-fit regression iterates the real theme
rows of each mode; the telemetry regression picks on the dark side.
Part 3 of 4 for #1121 (stacked: based on part 2; review in order).
Change
Settings → Appearance now has the mode (Dark / Light / System) and two pickers, Dark theme and Light theme. Each lists every theme, so any theme can sit on either side; a theme's own row decides whether it draws dark or light. Choosing one half of a known pair pre-fills the other side only while that side is still the default or the previous pick's sibling.
shared/telemetry.tsaccepts every theme id and thedarkTheme/lightThemekeys (older apps' snapshots still validate). The Worker is already deployed with this schema;telemetry/deployed.jsonrecords it, so the deploy gate passes.darkTheme/lightThemeare shared settings; the legacypalette/paletteDark/paletteLightstay as compatibility mirrors. Every saved look loads unchanged.normalizeThemeChangeinPreferenceStore.setis the single place that reconciles old and new clients, decided by the incoming change's key set. Clients never send corrective writes, so an old tab or old server cannot start a write loop.Validation
bun run check fastgreen (includingscripts/telemetry-deployed.test.ts).usePreferencesSynchook with an on-diskPreferenceStore, counting revisions (no extra PUTs; old server drops keys and recovers).scripts/preferences-sync-regression.ts,settings-pages-demo-regression.ts,composer-fit-demo-regression.ts,telemetry-regression.tspass on the built demo.bunx wrangler deploydone; an invalid body to/v1/eventsreturns 400.