A Better Approach to Dark Mode on Your Website

Learn how to correctly implement a light/dark mode, reading the user preferences and allowing them to switch.

Juan Cruz Martinez
Level Up Coding
Published in
5 min readJan 24, 2023

--

Image by the author

Dark Mode seems to be here to stay. Initially, mainly used by developers in their code editors, but now it’s all over the place, from mobile, desktops, and now even the web. Supporting Dark Mode is…

--

--

I help people learn tech skills so they can level up their life. Founder of https://livecodestream.dev, content creator, and Oktanaut!