- 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>
62 lines
2.1 KiB
JSON
62 lines
2.1 KiB
JSON
[
|
|
{
|
|
"dark": true,
|
|
"id": "lutra-dark",
|
|
"labelKey": "theme.lutraDark",
|
|
"tokens": {
|
|
"--lt-accent": "#d39a5c",
|
|
"--lt-bg": "#1f1d1b",
|
|
"--lt-border": "#34302c",
|
|
"--lt-editor-active-line-bg": "#232221",
|
|
"--lt-editor-bg": "#191817",
|
|
"--lt-editor-cursor": "#d39a5c",
|
|
"--lt-editor-gutter-bg": "#191817",
|
|
"--lt-editor-gutter-fg": "#9a928a",
|
|
"--lt-editor-match-bg": "#3a2f23",
|
|
"--lt-editor-selection-bg": "#513f2c",
|
|
"--lt-error": "#ef7b6c",
|
|
"--lt-fg": "#e6e1da",
|
|
"--lt-fg-muted": "#9a928a",
|
|
"--lt-font-mono": "ui-monospace, \"Cascadia Code\", Menlo, Consolas, monospace",
|
|
"--lt-font-size-editor": "14px",
|
|
"--lt-font-size-small": "12px",
|
|
"--lt-font-size-ui": "13px",
|
|
"--lt-font-ui": "system-ui, -apple-system, \"Segoe UI\", Roboto, Ubuntu, sans-serif",
|
|
"--lt-notice-bg": "#3a3025",
|
|
"--lt-statusbar-bg": "#24211f",
|
|
"--lt-statusbar-fg": "#b8afa6",
|
|
"--lt-tab-active-bg": "#191817",
|
|
"--lt-tab-modified": "#d39a5c"
|
|
}
|
|
},
|
|
{
|
|
"dark": false,
|
|
"id": "lutra-light",
|
|
"labelKey": "theme.lutraLight",
|
|
"tokens": {
|
|
"--lt-accent": "#965a22",
|
|
"--lt-bg": "#f4f1ec",
|
|
"--lt-border": "#ddd6cd",
|
|
"--lt-editor-active-line-bg": "#f1efed",
|
|
"--lt-editor-bg": "#fbfaf8",
|
|
"--lt-editor-cursor": "#965a22",
|
|
"--lt-editor-gutter-bg": "#fbfaf8",
|
|
"--lt-editor-gutter-fg": "#6b625a",
|
|
"--lt-editor-match-bg": "#ece2d8",
|
|
"--lt-editor-selection-bg": "#e5d7c9",
|
|
"--lt-error": "#b23a29",
|
|
"--lt-fg": "#2a2622",
|
|
"--lt-fg-muted": "#6b625a",
|
|
"--lt-font-mono": "ui-monospace, \"Cascadia Code\", Menlo, Consolas, monospace",
|
|
"--lt-font-size-editor": "14px",
|
|
"--lt-font-size-small": "12px",
|
|
"--lt-font-size-ui": "13px",
|
|
"--lt-font-ui": "system-ui, -apple-system, \"Segoe UI\", Roboto, Ubuntu, sans-serif",
|
|
"--lt-notice-bg": "#e9dfd4",
|
|
"--lt-statusbar-bg": "#ece7e0",
|
|
"--lt-statusbar-fg": "#5a5149",
|
|
"--lt-tab-active-bg": "#fbfaf8",
|
|
"--lt-tab-modified": "#965a22"
|
|
}
|
|
}
|
|
]
|