fix(ui): terminal palette is theme tokens, switches live (#1739)
--terminal-bg/fg/cursor/selection are defined per theme in style.css (dark keeps the deep well, light gets a paper inset) and exposed as bg-terminal. Both xterm surfaces (SetupTerminal, SandboxView) read them via lib/terminalTheme and re-apply on every data-theme flip, so the theme switch is live; the raw #0b0f14/#e6edf3/#264f78 hex is gone.
This commit is contained in:
4 files changed
+79
-9
No files matched your search
@@ -94,6 +94,8 @@
|
||||
--color-input: var(--input);
|
||||
--color-ring: var(--ring);
|
||||
--color-hairline: var(--hairline);
|
||||
/* Terminal (xterm) host box; the palette itself is read via getComputedStyle. */
|
||||
--color-terminal: var(--terminal-bg);
|
||||
|
||||
--color-sidebar: var(--card);
|
||||
--color-sidebar-foreground: var(--card-foreground);
|
||||
@@ -191,6 +193,12 @@
|
||||
--workspace: #16171a;
|
||||
--hairline: #2a2c30;
|
||||
|
||||
/* Terminal well: darker than the card so the stream reads as a well. */
|
||||
--terminal-bg: #0b0f14;
|
||||
--terminal-fg: var(--foreground);
|
||||
--terminal-cursor: var(--foreground);
|
||||
--terminal-selection: #264f78;
|
||||
|
||||
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
|
||||
--shadow-md: 0 8px 28px rgba(0, 0, 0, 0.4);
|
||||
--shadow-workspace: none;
|
||||
@@ -255,6 +263,12 @@
|
||||
--workspace: #f5f4f1;
|
||||
--hairline: #d6d3cc;
|
||||
|
||||
/* Paper inset: the light-theme terminal is light, not a dark well. */
|
||||
--terminal-bg: #f5f4f1;
|
||||
--terminal-fg: var(--foreground);
|
||||
--terminal-cursor: var(--foreground);
|
||||
--terminal-selection: #c9d8e8;
|
||||
|
||||
--shadow-sm: 0 1px 2px rgba(31, 31, 29, 0.06);
|
||||
--shadow-md: 0 8px 28px rgba(31, 31, 29, 0.1);
|
||||
--shadow-workspace: none;
|
||||
|
||||
Reference in new issue
Block a user