You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I build the production style all the dark mode classes are removed. This happens with the utility classes, for instance dark:text-gray-500, but not when you create custom components with @apply.
I tried searching for any class that begins with dark: in the compiled stylesheet, but I couldn't find any.
Hey! Thank you for your bug report!
Much appreciated! 🙏
Can you create a reproduction repository that you can share with us?
Also verify that if you are using darkMode: "class" that your code to toggle the "dark" class is also in one of the files listed in the purge list.
I couldn't really reproduce the issue, but I managed to fix it by being less specific in the purge config.
In particular instead of specifying all the folders in src containing react components, I specified the entire folder like so:
Describe the problem:
When I build the production style all the dark mode classes are removed. This happens with the utility classes, for instance
dark:text-gray-500
, but not when you create custom components with@apply
.I tried searching for any class that begins with
dark:
in the compiled stylesheet, but I couldn't find any.My purge config is the following:
I'm using
The text was updated successfully, but these errors were encountered: