# Shared theme Load `tokens.css`, `theme.css`, then `components.css` for the canonical shell. The first defines brand primitives; the second selects semantic `--app-*` values. The component sheet applies them to the canvas, text, links, navigation surfaces and keyboard focus. It also sets the shared body font and removes the browser's body margin. Stale values keep their state marker and use `--app-text-muted`; fading the whole element would reduce text contrast. Stale canvases remain dimmed. Dark is the default. System preference applies when `data-theme` is absent; an explicit `data-theme="light"` or `data-theme="dark"` on the root wins. The optional `warden-compat.css` maps legacy console names (`--bg`, `--sp-3`, `--accent`) onto the same tokens. Load it after `theme.css`. Differences resolved: | Topic | FLARE | Warden console | Unified | |---|---|---|---| | Default theme | dark | light | dark; system preference applies when `data-theme` is absent | | Link/accent | cyan-400 (dark), cyan-600 (light) | accent #3ABCF8/#3776BE | `--app-link` | | Danger | #FF6B6B / #C7162B | #F0555A / #B42318 | `--app-danger` | Tests in `src/tokens.rs` check that every `var()` resolves, the three theme blocks define the same names, and every legacy console name is mapped. The maintained schema-page browser test checks computed colors, painted pixels and focus in both themes and engines. Run `node page.cjs --shell-only` from `crates/flare-ui/tests/browser` for the focused shell cases. Pass `--css=/path/to/components.css` to check another component sheet against the same regression. Legacy console adoption remains consumer work.