Context
The first version of docs/design/DESIGN-DNA.md made dark the default, "exactly as in the reference". The code disagreed with itself: tokens.css put the dark palette on :root, while ThemeProvider set defaultTheme="light". Which theme a first-time visitor saw depended on the file you read. The September 2026 code review flagged it as high severity.
The product is read for long stretches: lecture PDFs, a tutor chat, quiz questions. Students use it in daylight classrooms and libraries, often on projectors.
Decision
- Light is the default.
packages/ui/src/styles/tokens.cssputs the light palette on:root(and.light). Dark lives under.dark. ThemeProviderusesdefaultTheme="light"withenableSystem={false}, so the first paint always matches the tokens. Dark stays one click away through the theme toggle.- The accent swap is kept: lavender leads in light, lime leads in dark.
Alternatives considered
- Dark default, as in the reference. Matches the template, but it is less legible for long reading and on projectors.
- Follow the system preference. Causes a flash of the wrong theme before hydration, and it makes screenshots and E2E runs depend on the machine.
Consequences
DESIGN-DNA.md§2 documents the light palette first. Any new token needs a value in both themes.- Media-overlay text (
on-media) and the brand icon seats do not flip between themes, because the media behind them is light in both.