From 50f6d2cf9d43877c8f7442112cfdf591c1eff5c9 Mon Sep 17 00:00:00 2001 From: cavidelizade Date: Fri, 17 Jul 2026 00:55:11 +0400 Subject: [PATCH] fix(ui): apply the saved theme before paint to avoid a light flash index.html hardcoded data-theme="light" and the real theme was only applied once React ran, so dark and pink users saw a flash of light on every load. Add a tiny blocking script in the head that reads devlane-theme from localStorage (same key, values and system fallback as ThemeContext) and sets data-theme before the bundle paints. Closes #348 Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/web/index.html | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/apps/web/index.html b/apps/web/index.html index 2ec4dd9c..1ce3bc66 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -1,6 +1,29 @@ - + +