fix: remove page reload from theme changes, rely on dark class application
This commit is contained in:
1 parent
6b2d716cc4
commit
a5a03792f6
2 files changed
+22
-6
No files matched your search
@@ -23,6 +23,25 @@ export const metadata: Metadata = {
|
||||
},
|
||||
};
|
||||
|
||||
// Add global CSS variable definitions
|
||||
const themeStylesheet = `
|
||||
:root {
|
||||
--bg-primary: #f8fafc;
|
||||
--bg-secondary: #f1f5f9;
|
||||
--text-primary: #1e293b;
|
||||
--text-secondary: #64748b;
|
||||
--border-color: #e2e8f0;
|
||||
}
|
||||
|
||||
html.dark {
|
||||
--bg-primary: #0f172a;
|
||||
--bg-secondary: #1e293b;
|
||||
--text-primary: #f1f5f9;
|
||||
--text-secondary: #cbd5e1;
|
||||
--border-color: #334155;
|
||||
}
|
||||
`;
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
|
||||
Reference in new issue
Block a user