Detect OS Dark or Light Mode with CSS & JavaScript – Web Tutorial

In this video tutorial I’ll be showing you how to detect the OS color scheme using CSS and JavaScript. With this technique, you can introduce a “dark mode” for your websites, which will change automatically when a users device has “dark mode” enabled.

Support me on Patreon:
https://www.patreon.com/dcode – with enough funding I plan to develop a website of some sort with a new developer experience!

Follow me on Twitter @dcodeyt!

If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!

Post Author: hatefull