From abacb0131f4df3dedf343fe1d5dca6951548d153 Mon Sep 17 00:00:00 2001 From: Hikari Date: Wed, 28 Jan 2026 16:33:41 -0800 Subject: [PATCH] feat: add theme support for code editor - Add light theme with GitHub-inspired colors - Add high contrast theme with VS Code high contrast colors - Dynamically switch themes when user changes app theme - Use CodeMirror Compartment for efficient theme reconfiguration - Support dark, light, high-contrast, and custom (uses dark) themes --- src/lib/components/editor/CodeEditor.svelte | 288 +++++++++++++++++++- 1 file changed, 282 insertions(+), 6 deletions(-) diff --git a/src/lib/components/editor/CodeEditor.svelte b/src/lib/components/editor/CodeEditor.svelte index b8d85eb..8cb40af 100644 --- a/src/lib/components/editor/CodeEditor.svelte +++ b/src/lib/components/editor/CodeEditor.svelte @@ -1,7 +1,7 @@