Pure CSS theme switching with light-dark() function
This demo uses the new CSS light-dark() function which switches values based on the color-scheme property.
No JavaScript needed! The browser automatically applies the correct theme based on the user's system preference or the select dropdown.