From ab482964f8004998f313ede56e39378b9a3a321d Mon Sep 17 00:00:00 2001 From: Jean Date: Sat, 4 Jul 2026 22:24:08 +0000 Subject: [PATCH] html: apply the saved theme before first paint Inline head script sets data-theme from localStorage before the CSS loads, so returning users on dark/yomirc no longer flash the light default on load or reload. The full theme logic still runs later in src/ui/theme.ts. --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index 590c8d0..f2343da 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,9 @@ + +