color-scheme
talltotal opened this issue · comments
小聪聪到此一游 commented
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
Will Power commented
I had no idea this existed seems very neat based on https://web.dev/color-scheme/
Apparently supported-color-schemes
was the original way of doing it but isn't in the spec any more (https://bugzilla.mozilla.org/show_bug.cgi?id=1525107#c1)