From a2b76539da1c1f529007a799a83a6ecb7681134f Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Thu, 5 Mar 2026 19:26:23 -0700 Subject: [PATCH] Replace hardcoded slate-* classes with theme-aware sb-* utilities WaveformViewer, SchematicViewer, and SimulationLog now use CSS variable-backed utility classes (bg-sb-surface, text-sb-muted, border-sb-border, etc.) instead of hardcoded Tailwind slate colors. Light mode embed theme now works through the variable system rather than brute-force class overrides in embed-theme.css. --- .../notebook/output/SchematicViewer.tsx | 16 ++++----- .../notebook/output/SimulationLog.tsx | 6 ++-- .../notebook/output/WaveformViewer.tsx | 10 +++--- frontend/src/styles/embed-theme.css | 34 ++----------------- 4 files changed, 19 insertions(+), 47 deletions(-) diff --git a/frontend/src/components/notebook/output/SchematicViewer.tsx b/frontend/src/components/notebook/output/SchematicViewer.tsx index 3b60ece..0ce3711 100644 --- a/frontend/src/components/notebook/output/SchematicViewer.tsx +++ b/frontend/src/components/notebook/output/SchematicViewer.tsx @@ -192,20 +192,20 @@ export function SchematicViewer({ svg, componentMap, onValueChange }: SchematicV ); return ( -
+
{/* Toolbar */} -
+
{componentMap && Object.keys(componentMap).length > 0 && ( - + click values to edit )}