How To Add Dark Mode Support To Your Website

1 · Miguel Grinberg · Jan. 1, 2024, 3:44 p.m.
You may have noticed that I have recently added a dark mode to this blog. The default color theme now follows the theme setting in your operating system by default. Nice, right? I have implemented this feature entirely in the front end, using CSS and a touch of JavaScript. Interested in implementing a similar feature for your own website? In this article I'll show you how I did it....