-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
fix(theme): Conform theme logic with OS theme preference #6138
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is resolvedTheme? Does this fix the issue of when using system theme detection it not providing the correct theme?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thank you for your first contribution :)
Lighthouse Results
|
From the next-themes docs:
Talking about incorrect theme detection I have nothing to say 🤷🏻♂️ , if you have any details, let's consider 👍🏻 |
I'm fast-tracking this as a nice one-liner bug fix. |
Again, thank you for the contribution, @demakoff! Super appreciate it! |
@ovflowd Thanks a lot, Claudio 🤝 |
Description
It looks like after these changes in themeProvider.tsx initial conformity between app theme and OS theme preference was broken, so the app completely disregarded OS level theme user preference having a dark theme as default always.
Validation
Before:
After:
Related Issues
The issue was introduced here #6092
Check List
npx turbo lint
to ensure the code follows the style guide. And runnpx turbo lint:fix
to fix the style errors if necessary.npx turbo format
to ensure the code follows the style guide.npx turbo test
to check if all tests are passing.