From 45ce9f3792f835efddd6c2cd5a080372d7f297ec Mon Sep 17 00:00:00 2001 From: u8array Date: Sat, 9 May 2026 12:12:59 +0200 Subject: [PATCH 1/3] style(theme): rework light palette to neutral zinc, lift chrome and code area The light theme had a faint purple cast (B>R+G across bg, surface, border) and three flat off-white panels surrounded by a barely-visible canvas frame. Replace with Tailwind's zinc scale: subtly cool but not blue-tinted, the modern-tool grey used by Linear/Vercel/Stripe. - Side panels stay near-white (#fafafa) - Canvas frame deepens to #e4e4e7 so the white label visibly pops - Header and bottom output wrapper move to bg-surface-2 (#f4f4f5) to read as 'tool chrome' separate from the workspace - ZPL code area inside the output wrapper gets bg-surface so the inner header strip stands out from the code body, like an editor - Borders and muted text picked from zinc-300/400/600 so panel separators and secondary text are readable on every surface --- src/components/AppShell.tsx | 4 ++-- src/components/Output/ZPLOutput.tsx | 2 +- src/index.css | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/AppShell.tsx b/src/components/AppShell.tsx index b53b0091..ef98d8ec 100644 --- a/src/components/AppShell.tsx +++ b/src/components/AppShell.tsx @@ -95,7 +95,7 @@ export function AppShell() { return (
{/* Header */} -
+
@@ -126,7 +126,7 @@ export function AppShell() { disabled={!canRedo} title={`${t.app.redo} (${kbd('Z', { shift: true })})`} aria-label={t.app.redo} - className="p-1.5 rounded text-muted hover:text-text hover:bg-surface-2 disabled:opacity-25 disabled:cursor-not-allowed transition-colors" + className="p-1.5 rounded text-muted hover:text-text hover:bg-border disabled:opacity-25 disabled:cursor-not-allowed transition-colors" > @@ -137,7 +137,7 @@ export function AppShell() { onClick={() => setTheme(theme === "dark" ? "light" : "dark")} title={theme === "dark" ? t.app.themeLight : t.app.themeDark} aria-label={t.app.themeToggle} - className="p-1.5 rounded text-muted hover:text-text hover:bg-surface-2 transition-colors" + className="p-1.5 rounded text-muted hover:text-text hover:bg-border transition-colors" > {theme === "dark" ? ( @@ -168,7 +168,7 @@ export function AppShell() { target="_blank" rel="noopener noreferrer" title="GitHub" - className="p-1.5 rounded text-muted hover:text-text hover:bg-surface-2 transition-colors" + className="p-1.5 rounded text-muted hover:text-text hover:bg-border transition-colors" > diff --git a/src/components/Output/ZPLOutput.tsx b/src/components/Output/ZPLOutput.tsx index ca2d0b97..6ec6568b 100644 --- a/src/components/Output/ZPLOutput.tsx +++ b/src/components/Output/ZPLOutput.tsx @@ -38,7 +38,7 @@ export function ZPLOutput({ collapsed, onCollapse, onExpand }: Props) {