From a4b5e72d82b395a2865fa4e2f6e8e4bf24ad0c2f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 2 Aug 2025 17:38:00 -0400 Subject: [PATCH] Fix: properly handle classlist with light theme (#5612) --- src/pages/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 33b807c76..1c9be6549 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -524,7 +524,7 @@ export default function Wrapper({ initialSettings, fallback }) { const body = document.body; html.classList.remove("dark", "scheme-dark", "scheme-light"); - html.classList.add(theme === "dark" ? "dark" : ""); + html.classList.toggle("dark", theme === "dark"); html.classList.add(theme === "dark" ? "scheme-dark" : "scheme-light"); html.classList.remove(...Array.from(html.classList).filter((cls) => cls.startsWith("theme-")));