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
Tag
1 article
A few lines of inline script prevent the annoying white flash on load when the user prefers the dark theme.
· 1 min read