Debug, debug, debug and debug for ever!!!!
Don't forget to test and debug your code in all the cases you can think of. and let your friends try everything before you push to the production mode.
I am using NextTheme with TailwindCss 4.
The light theme and dark theme working perfectly.
BUTTTT, if the system is in dark mode, and we open the website on the light theme we will see this stupid issue that make the visitors run away in 1 SEC.
I was some tailwind class with 'dark:' and without notice i forget i have css variables that cause for me this problem.
so i go throw all website and fix it, its take from me 2 hours.
just quick snap about it:
Before: bg-white dark:bg-gray-800
After: bg-card