6 months ago
0
54
I've implemented a custom theme for my Q&A site using Tailwind CSS variables. When I toggle from the light theme to my dark theme (specifically using --color-dark-200), there is a slight "flash" of white before the dark background loads. I am using a ThemeProvider component; is there a way to inject the theme script into the document head to prevent this?


No one has answered yet. Be the first to answer!
1