Adhoc Systems

In reply to https://victoria.dev/blog/responsive-pages-and-color-themes-with-minimal-css/
Zachary Dunn's avatar.

Zachary Dunn

@zack:mozilla.org

I really like the look of your site in dark mode. The code blocks are my favorite part. Nice job!

What's this declaration do?

:root {
    color-scheme: light dark;
}

Searching for color-scheme on MDN just points me to the @prefers-color-scheme declaration. Is it manually specifying the default color scheme that should be applied if the user doesn't have a preference set?

Comments

There aren't any comments on this post yet.