Flash-free dark mode with Tailwind CSS
A few lines of inline script prevent the annoying white flash on load when the user prefers the dark theme.
Alessandro Manias
· 1 min read
1 article in this section
A few lines of inline script prevent the annoying white flash on load when the user prefers the dark theme.
· 1 min read