localStorage because that's a more direct signal specifically for your site, but you need to make sure people can also still choose "use system setting", not just toggle between light and dark. I wrote about that here: Your dark mode toggle is broken
localStorage because that's a more direct signal specifically for your site, but you need to make sure people can also still choose "use system setting", not just toggle between light and dark. I wrote about that here: Your dark mode toggle is broken
Wow thanks, I'll definitely check your article. 👍