feat: add theme initialization script to root layout

This commit is contained in:
2026-04-15 17:06:06 -04:00
parent 70f76a05b3
commit b4604f3803
+4
View File
@@ -1,5 +1,6 @@
import "@styles/globals.css"; import "@styles/globals.css";
import { ZenProvider } from '@zen/core/features/provider'; import { ZenProvider } from '@zen/core/features/provider';
import { THEME_INIT_SCRIPT } from '@zen/core/themes';
export const metadata = { export const metadata = {
title: "", title: "",
@@ -9,6 +10,9 @@ export const metadata = {
export default function RootLayout({ children }) { export default function RootLayout({ children }) {
return ( return (
<html lang="fr"> <html lang="fr">
<head>
<script dangerouslySetInnerHTML={{ __html: THEME_INIT_SCRIPT }} />
</head>
<body> <body>
<ZenProvider> <ZenProvider>
{children} {children}