maj color develop
This commit is contained in:
@@ -37,11 +37,22 @@ export async function generateMetadata(): Promise<Metadata> {
|
||||
};
|
||||
}
|
||||
|
||||
const isDev = process.env.NODE_ENV === 'development';
|
||||
const devBrandOverride: React.CSSProperties | undefined = isDev ? {
|
||||
'--color-brand-50': '#fef2f2',
|
||||
'--color-brand-100': '#fee2e2',
|
||||
'--color-brand-200': '#fecaca',
|
||||
'--color-brand-500': '#ef4444',
|
||||
'--color-brand-600': '#dc2626',
|
||||
'--color-brand-700': '#b91c1c',
|
||||
'--color-brand-900': '#7f1d1d',
|
||||
} as React.CSSProperties : undefined;
|
||||
|
||||
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
const settings = await getSiteSettings();
|
||||
|
||||
return (
|
||||
<html lang="fr" className={`${inter.variable} ${playfair.variable}`} suppressHydrationWarning>
|
||||
<html lang="fr" className={`${inter.variable} ${playfair.variable}`} style={devBrandOverride} suppressHydrationWarning>
|
||||
<head>
|
||||
<link rel="icon" type="image/png" href="/favicon.png" />
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user