perf: defer dark green theme styles

This commit is contained in:
2026-06-05 20:28:47 +08:00
parent e3bdd10156
commit 6f7355e689
3 changed files with 8 additions and 1 deletions
+2
View File
@@ -23,6 +23,7 @@ import { AnimatedPanel } from "./AnimatedPanel";
import AdminMonitor from "./AdminMonitor";
import CookieConsentBanner from "./CookieConsentBanner";
import { loadRechargeModal, type RechargeModalComponent } from "./RechargeModal/loadRechargeModal";
import { loadDarkGreenTheme } from "../styles/loadDarkGreenTheme";
interface AppShellProps {
activeView: WebViewKey;
@@ -129,6 +130,7 @@ function AppShell({
return;
}
void loadDarkGreenTheme();
document.documentElement.dataset.theme = "dark";
document.documentElement.dataset.uiTheme = "dark-green";
document.documentElement.style.colorScheme = "dark";