#382 Light and dark themes across the whole site and the editor
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#382
- issue
- state:closed
The landing and audience pages (#379, #380) follow the system's light or dark setting with a dark palette of their own (`platform/app/platform.css`, the `prefers-color-scheme: dark` block after the landing styles: `--paper #1a2720`, `--ink #e3ebe0`, `--green #9fd0a8`, …). The rest of the site is light only. Port that theme to the whole site. **Scope.** - Every platform page: the timeline browser (`/explore` and `/` when it is the browser), profiles, timeline pages and the reader, moment and duration pages, sign-in and sign-up, account, administration and moderation, help and docs, plugins, download, legal pages, error pages, dialogs, toasts, menus, forms and focus states. - The editor and viewer chrome in `src/` (toolbar, panels, dialogs, the details panel and reader, menus), so the hosted editor, the offline HTML edition and the desktop app match. - The timeline stage's default drawing (axis, ticks, labels, markers, bands, arcs, halos over backgrounds) in dark, while a timeline whose **Timeline theme** plugin sets its own colours keeps them in both modes. **Behaviour.** Follow `prefers-color-scheme` by default, with a choice of **System / Light / Dark** (in the account menu and the footer, remembered in the browser, applied before first paint so there's no flash; it works signed out and without JavaScript falling back to the system setting). Embeds follow the embedding page's preference and accept a `theme=light|dark` parameter. **Quality.** One set of colour tokens for both modes (no scattered hard-coded colours), WCAG AA contrast for text and controls in both, images and band backgrounds unchanged, charts and printed pages readable (print stays light). Tests: both schemes across the main pages (screenshots and contrast checks in the browser tests), the toggle, no flash on load, and a themed timeline keeping its colours. https://github.com/openchronology/timeline-app/issues/382
Related
Open #382 Light and dark themes across the whole site and the editor in the timeline