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
What would you like to be added:
Respect the user's setting for prefers-color-scheme to automatically choose between light and dark modes.
Why is this needed:
All major desktops support some kind of automated day/night switch by now, which will usually also toggle the prefers-color-scheme preference in web browsers. Respecting this preference by default while keeping the Grafana preferences to be able to override it would result in better UX, IMHO.
The way I could imagine this is by
utilising the Default option in Grafana's preferences page (Default | Dark | Light). On loading, check for prefers-color-scheme
if not present, fall back to current Default behaviour
dark: load dark.css
light: load light.css
adding another option (Default | Dark | Light | OS)
The text was updated successfully, but these errors were encountered:
hugohaggmark
changed the title
Incorporate css media query prefers-color-scheme for automatic light/dark mode switching
[FeatureRequest]: Automatic light/dark mode switching based on OS preferences
Mar 10, 2021
This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!
What would you like to be added:
Respect the user's setting for prefers-color-scheme to automatically choose between light and dark modes.
Why is this needed:
All major desktops support some kind of automated day/night switch by now, which will usually also toggle the
prefers-color-scheme
preference in web browsers. Respecting this preference by default while keeping the Grafana preferences to be able to override it would result in better UX, IMHO.The way I could imagine this is by
Default
option in Grafana's preferences page (Default | Dark | Light
). On loading, check forprefers-color-scheme
Default
behaviourdark
: load dark.csslight
: load light.cssDefault | Dark | Light | OS
)The text was updated successfully, but these errors were encountered: