A short tutorial on using the CSS prefers-color-scheme media query to detect a visitor's dark mode setting and style a website accordingly. It is aimed at people who already work with HTML and CSS.
What you’ll learn
✓Detect a visitor's dark mode preference with a CSS media query