Add light mode support.

This commit is contained in:
Jaret Burkett committed 2026-03-31 16:54:55 -06:00
1 parent ad474e3d06
commit 853ffaf207
23 files changed
+183 -79

No files matched your search

+11 -1
View File
@@ -25,9 +25,19 @@ export default function RootLayout({ children }: { children: React.ReactNode })
const platform = os.platform();
return (
<html lang="en" className="dark">
<html lang="en" suppressHydrationWarning>
<head>
<meta name="apple-mobile-web-app-title" content="AI-Toolkit" />
<script
dangerouslySetInnerHTML={{
__html: `
(function() {
var theme = localStorage.getItem('theme') || 'dark';
if (theme === 'dark') document.documentElement.classList.add('dark');
})();
`,
}}
/>
</head>
<body className={inter.className}>
<script dangerouslySetInnerHTML={{ __html: `window.server_platform = "${platform}";` }} />