fix(theme): unblock light mode in dev

Hardcoded class="dark" on <html> meant React owned it via JSX. HMR
re-renders and reconciliation kept restoring the class after
classList.toggle removed it, so light toggle never stuck.

ThemeScript already handles initial paint; suppressHydrationWarning
covers the post-script class mismatch.
This commit is contained in:
lerko96
2026-04-27 00:49:57 -04:00
parent 7f614d28b5
commit 22660bed7a

View File

@@ -24,7 +24,7 @@ export default function RootLayout({
children: React.ReactNode;
}) {
return (
<html lang="en" className="dark">
<html lang="en" suppressHydrationWarning>
<head>
<ThemeScript />
</head>