How to make a flicker-free dark theme toggle with Next.js, TailwindCSS, and next-themes
Have you ever added a theme toggle to a website? Have you also tried to remember the user's preference so they see the same theme when they visit again?
Yes? Then my final question is, have you ever been greeted by a flash of the wrong theme on page ...
conermurphy.hashnode.dev9 min read