tailwind-nextjs-starter-blog-i18n
tailwind-nextjs-starter-blog-i18n copied to clipboard
fix: Visual Bug Fixes for Theme Selection
Problem
There were several visual bugs when no theme was selected:
- If nothing was selected and the user's system was set to dark theme, a visual bug caused the page to start with a light theme.
- On initial loading from the server, the theme switch button did not have a pre-reserved space, causing a layout shift.
- The initial color of the button in the dark theme made the button invisible.
After Corrections
@MarlonPassos-git is attempting to deploy a commit to the sylartist's projects Team on Vercel.
A member of the Team first needs to authorize it.
Hi! The problem is that I need the custom ThemeContext for managing theme with the icons, but also within the kbar menu. Tried before with the hook from next, but it was'nt working and bugs were even worse than now. So if you have another solution, why not, but for now I won't replace my custom implementation, unless your solution works for both kbar (settings) and icons . But thank you for all your improvements and suggestions!
ok, i'll take a look tonight