Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic dark mode #120

Open
gbdlin opened this issue Aug 10, 2023 · 0 comments
Open

Automatic dark mode #120

gbdlin opened this issue Aug 10, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@gbdlin
Copy link

gbdlin commented Aug 10, 2023

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.

@jeffreytse jeffreytse self-assigned this Aug 11, 2023
@jeffreytse jeffreytse added the enhancement New feature or request label Aug 11, 2023
@jeffreytse jeffreytse added the good first issue Good for newcomers label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants