fix(ui): terminal palette is theme tokens, switches live (#1739)
Quality / check (push) Canceled after 3m23s
deploy / gate (push) Successful in 4m51s
deploy / archied-image (push) Successful in 3m22s
deploy / agent-image (push) Successful in 11s
deploy / dist-zip (push) Skipped

--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:
sam committed 2026-11-07 01:13:41 +11:00
1 parent 48e605a545
commit cb3372ac76
4 files changed
+79 -9

No files matched your search

+14
View File
@@ -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;