Dark Mode CSS Support Using Prefers-Color-Scheme Media Query

Cristiano

I AM BABY GROOT
Admin
Joined
Sep 19, 2018
Messages
1,933
SL Rez
2002
Joined SLU
Nov 2003
SLU Posts
35836
The latest release of Chrome has added support for the prefers-color-scheme media query, joining Safari and Firefox that already support it (it is coming to mobile Safari with iOS 13). It provides an elegant way to support light or dark mode based on user preferences:




As someone who turns on dark mode on everything, I appreciate where this is heading.