You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modern web browsers have a prefers-color-scheme media query that exposes the current user preference for viewing websites in dark or light mode. It would be very cool if this theme would support that.
The word current is important here, as the preference may change during the day, as it is tied to the system color scheme on most platforms, and that can be set on a schedule to change between dark and light, or even be based on light conditions. Because of that, it is important to not read the user preference once when website loads, but preferably use the media query in the CSS code directly, so the color scheme changes immediately with the media query value.
The text was updated successfully, but these errors were encountered:
Modern web browsers have a
prefers-color-scheme
media query that exposes the current user preference for viewing websites in dark or light mode. It would be very cool if this theme would support that.The word
current
is important here, as the preference may change during the day, as it is tied to the system color scheme on most platforms, and that can be set on a schedule to change between dark and light, or even be based on light conditions. Because of that, it is important to not read the user preference once when website loads, but preferably use the media query in the CSS code directly, so the color scheme changes immediately with the media query value.The text was updated successfully, but these errors were encountered: