-
Notifications
You must be signed in to change notification settings - Fork 39
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
Automatically update theme when system theme changes #694
Comments
We use Chakra UI, and its theming config works like this: https://v2.chakra-ui.com/docs/styled-system/theme#config Here is how the code is implemented https://github.com/tarasglek/chatcraft.org/blob/main/src/theme.ts |
FYI Seems to me the functionality is already implemented. |
You're right - I assumed it doesn't because the theme doesn't update when the system theme changes, even after reloading, which is really the issue I was trying to get at. From what I understand, turning this on would just require changing |
It'd be nice to automatically set light or dark mode on initial load based on system theme. One way to do this might be using the CSS media feature
prefers-color-scheme
.The text was updated successfully, but these errors were encountered: