We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
prefers-color-scheme
Support prefers-color-scheme with window.matchMedia() to determine user theme on first visit.
window.matchMedia()
Current Behavior:
on visit, active theme choice is decided by
themes
Proposed Behavior:
light
dark
disablePrefersColorScheme
The text was updated successfully, but these errors were encountered:
@dysfunc thoughts on the proposed prop to disable the new behavior?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Support
prefers-color-scheme
withwindow.matchMedia()
to determine user theme on first visit.Current Behavior:
on visit, active theme choice is decided by
themes
arrayProposed Behavior:
on visit, active theme choice is decided by
prefers-color-scheme
choice (will belight
ordark
and themes should have a palette with one of these names)themes
arrayChanges
disablePrefersColorScheme
? Forcing the new behavior may cause unwanted UX adjustmentsThe text was updated successfully, but these errors were encountered: