Shows how to build a light and dark mode toggle in pure CSS using variables and the :has() selector, without JavaScript. It also covers keeping the styles maintainable and making the switch accessible.
What you’ll learn
✓Build a light and dark mode switch using only CSS
✓Apply CSS variables and the :has() selector to theme an interface