From 040939fb720f8666eaee3d3b1866fe84e40151ca Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Sun, 28 Dec 2025 10:21:32 -0600 Subject: chore: cleanup theme stuff --- packages/ui/src/theme/loader.ts | 110 ---------------------------------------- 1 file changed, 110 deletions(-) (limited to 'packages/ui/src/theme/loader.ts') diff --git a/packages/ui/src/theme/loader.ts b/packages/ui/src/theme/loader.ts index b25c833dd..0f61076a0 100644 --- a/packages/ui/src/theme/loader.ts +++ b/packages/ui/src/theme/loader.ts @@ -1,13 +1,7 @@ -/** - * Theme loader - loads theme JSON files and applies them to the DOM. - */ - import type { DesktopTheme, ResolvedTheme } from "./types" import { resolveThemeVariant, themeToCss } from "./resolve" -/** Currently active theme */ let activeTheme: DesktopTheme | null = null - const THEME_STYLE_ID = "opencode-theme" function ensureLoaderStyleElement(): HTMLStyleElement { @@ -21,115 +15,25 @@ function ensureLoaderStyleElement(): HTMLStyleElement { return element } -/** - * Load and apply a theme to the document. - * Creates or updates a