Apply Styles Based On Dark-Mode Preferences
PreviousApply Multiple Box Shadows To Single ElementNextApply Styles To The Last Child Of A Specific Type
Last updated
Was this helpful?
Last updated
Was this helpful?
There is a CSS media query for whether a user prefers a Dark-Mode or Light-Mode color scheme. If you're site is able to provide styling for both modes, then you can hook into those preferences like so:
As of this writing, is still in a draft state, but it already has decent browser support.