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

Utilize "prefers-color-scheme" to set default theme #25

Open
crutchcorn opened this issue Aug 2, 2021 · 1 comment
Open

Utilize "prefers-color-scheme" to set default theme #25

crutchcorn opened this issue Aug 2, 2021 · 1 comment

Comments

@crutchcorn
Copy link
Contributor

Many users set their light/dark mode theme in their operating system.

By using prefers-color-scheme, we can set the default site theme to match with the expected theme.

Windows 10/11, macOS, Android, iOS, and many Linux distributions all support this functionality

@crutchcorn
Copy link
Contributor Author

Oh, apologies - it seems that this is currently supported on first page load. However, on subsequent page refreshes (even if manually not set), it doesn't change.

Might be nice to have detection to see if manually set or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant