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
I'm using tailwind 4 with angular 19 app. everything works great on dev, but I don't seem to be able to find a way to prevent all .dark css classes being purged as soon as I build for production. given that tailwind.config.js config approaches is no longer an option AFAIK what is the way to do this now? I have also tried adding @layer without any luck i.e
@layer base {
.dark\:border-teal-600 {
border-color: var(--color-teal-600);
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using tailwind 4 with angular 19 app. everything works great on dev, but I don't seem to be able to find a way to prevent all .dark css classes being purged as soon as I build for production. given that tailwind.config.js config approaches is no longer an option AFAIK what is the way to do this now? I have also tried adding @layer without any luck i.e
i have installed everything as per https://tailwindcss.com/docs/installation/framework-guides/angular
Beta Was this translation helpful? Give feedback.
All reactions