How To Add Dark Mode Support To Your Website

from blog https://blog.miguelgrinberg.com/feed, | ↗ original
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, and you can also select which mode to enable from the top navigation bar. Nice, right? I have implemented this feature entirely in the front end, using CSS and a touch of JavaScript....