mirror of
https://github.com/bitbaum/solon.git
synced 2026-12-04 08:39:20 +01:00
Solon was pinned to dark. The shared tokens already carry both themes
(:root light, .dark overrides), so this decides which one is on:
- src/components/theme/: the choices, a head script that sets the `dark`
class, `data-theme` and `color-scheme` before the first paint (no flash),
and a header toggle (Light / Dark / Device) kept in localStorage. No
framework or Solon name in theme.ts, so it can move into
@bitbaum/design-tokens ({#theme-package}).
- <html> drops the pinned class and carries suppressHydrationWarning.
- Photographs stay dark on purpose: FullBleed and AudienceTile wear `dark`,
and the transparent header over a page that opens on a photograph does
too (HEADER_OVER_PHOTO_ROUTES, held to the pages by a test).
- Bands that used bg-surface-public (near-black in both themes) use a new
`.band`: the public surface in dark, white in light. The footer too.
- bip-kit's variables are set in both themes, not only under html.dark.
- The law globe reads its tokens again when <html>'s class changes.
- text-white and text-green-400 replaced by tokens.
- Toggle words in all five languages; e2e check of device, pick and reload.
- Docs: ui-guidelines theme section, CLAUDE.md, AGENTS.md, README, ROADMAP
{#themes}, CHANGELOG {#theme-light}.
Claude-Session: https://claude.ai/code/session_019MDtmsWmge2YFXGRyA2au4
Co-authored-by: Claude <noreply@anthropic.com>