From 9e09c8ae2ad35e5fe63ab20e57b0ac839d4ad0a2 Mon Sep 17 00:00:00 2001 From: Lukas Date: Tue, 24 Mar 2026 17:59:13 +0100 Subject: [PATCH] Sync theme-color meta tag with active light/dark theme Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/web/src/hooks/use-theme.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/src/hooks/use-theme.ts b/apps/web/src/hooks/use-theme.ts index 5129c44..373475b 100644 --- a/apps/web/src/hooks/use-theme.ts +++ b/apps/web/src/hooks/use-theme.ts @@ -39,6 +39,9 @@ function resolve(pref: ThemePreference): ResolvedTheme { function applyTheme(resolved: ResolvedTheme): void { document.documentElement.dataset.theme = resolved; + document + .querySelector('meta[name="theme-color"]') + ?.setAttribute("content", resolved === "light" ? "#eeecea" : "#0e1a2e"); } function notifyAll(): void {