Build a dark mode switch using only HTML and CSS — no JavaScript needed. Learn an accessible toggle with a checkbox, CSS variables, prefers-color-scheme, and smooth transitions you can drop into any website. Lightweight, fast, and SEO-friendly for modern browsers.