Support 'Dark Mode' with color-scheme?
Discussion issue to answer two questions:
- should the theme attempt to offer any dark mode support (or should that be handled with a second theme using a different set of variables
- if so, could this be handled simply via
Color-Scheme
(more info: https://www.htmhell.dev/adventcalendar/2022/19/). That would both listen to whatever the browser/OS has set in terms of light/dark mode and handle flipping all the default UI elements with it: scroll bar, select dropdowns, radio buttons and checkboxes. All seemingly via the one line below:
:root {
color-scheme: light dark;
}