Lutra/ui/src/styles/base.css
danny cde6e119c6 M1.10: light theme, live theme switching, editor tokens
- theme::LIGHT next to DARK with the 10 new tokens (editor selection,
  active line, cursor, gutter, match, font size, tab active/modified,
  notice); light fg-muted, accent and error darkened for WCAG AA
- theme.list, theme.systemPreference, themeChanged event when the
  resolved theme changes (settings.set/reset appearance.theme, or the
  OS preference in system mode)
- desktop init script and window background from the stored setting;
  system mode uses a prefers-color-scheme media query for the first frame
- ui/src/theme.ts applies tokens to :root and color-scheme live; editor,
  tabs and notice drop their var() fallbacks
- Vitest WCAG AA contrast check against a Rust-maintained snapshot,
  DOM tests, headless control-channel test
- docs: architecture Themes, parity rows, ui-parity, gaps, roadmaps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 15:49:23 +02:00

20 lines
443 B
CSS

/**
* Base layout of the Lutra window. Colours and fonts come only from the
* theme tokens (`--lt-*`) that the desktop shell injects before first paint
* and `theme.ts` replaces on `:root` when the theme changes.
*/
html,
body,
#app {
height: 100%;
margin: 0;
}
body {
background: var(--lt-bg);
color: var(--lt-fg);
font-family: var(--lt-font-ui);
font-size: var(--lt-font-size-ui);
overflow: hidden;
user-select: none;
}