From a44aa52e1a639db89bf4ca84c25ef9ec452c025f Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Wed, 13 May 2026 20:46:21 +0000 Subject: [PATCH] terminal: theme picker (carbon/slate/mono/ink) replacing violet Drops the hardcoded violet/indigo palette. Four themes are defined as CSS variables on body.theme-{carbon,slate,mono,ink}: - Carbon (default): warm dark, ivory text, restrained amber accent. - Slate: cool dark, GitHub/Linear-ish charcoal with electric blue. - Mono: strict greyscale, off-white accent. - Ink: warm paper light, deep ink, terracotta accent. The lobby reads the choice from localStorage and applies the class before render. The picker lives at the bottom of the sidebar (margin-top: auto pins it). On change, the iframe is bounced through about:blank so the inner xterm picks up the new computed CSS vars (--terminal-bg/fg/cursor/selection) on the next mount. Picker UI uses native buttons, current theme highlighted with the accent border + color. No gradients, hairline borders only. --- stacks/terminal/files/index.html | 278 ++++++++++++++++++++++++------- 1 file changed, 217 insertions(+), 61 deletions(-) diff --git a/stacks/terminal/files/index.html b/stacks/terminal/files/index.html index bf382dc4..cdee3981 100644 --- a/stacks/terminal/files/index.html +++ b/stacks/terminal/files/index.html @@ -6,50 +6,118 @@ Terminal