by stevage · 3y ago · 0 comments
For small projects that never need to "scale", this looks handy.
For the viewers at home:
:root {
color-scheme: light dark high-contrast;
}body {
background: scheme(light #eee, dark #333, high-contrast #fff);
}Nevertheless, it's a good idea to do so (though if a site honors `prefers-color-scheme` it should also have a setting so the user can choose to have that site not match their system's color scheme setting).