From 9ed87a694c681cfa8864a34adc2d1f4f90825a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Mon, 21 Oct 2024 18:37:48 +0400 Subject: [PATCH] Fix SSR flickering --- app/theme-registy.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/theme-registy.js b/app/theme-registy.js index 8fe8547..e8655bc 100644 --- a/app/theme-registy.js +++ b/app/theme-registy.js @@ -18,6 +18,9 @@ import ChanjeTem from '../components/chanje-tem' import NextAppDirEmotionCacheProvider from './emotion-cache-provider' const theme = createTheme({ + cssVariables: { + colorSchemeSelector: 'class' + }, colorSchemes: { light: { palette: { @@ -66,7 +69,7 @@ export default function ThemeRegistry(props) { return ( <> - +