A short CSS tutorial introducing the prefers-color-scheme property, which lets a site serve light or dark styles based on the visitor's device colour preference. It is part of a series on new CSS properties.
What you’ll learn
✓Apply prefers-color-scheme media queries to switch a site between light and dark styles
✓Explain how device colour mode preferences reach a website's CSS