Tailwind CSS v4 styles not applying on page refresh with PrimeNG 21 (Angular 21 + Nx) #4548
Unanswered
viniciuscigma
asked this question in
PrimeNG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am facing an issue where Tailwind CSS v4 utility classes are not being correctly applied to PrimeNG components and standard HTML elements in a workspace using Angular 21, PrimeNG 21, and Nx.
Upon initial page load or a manual refresh (F5), Tailwind utility classes do not take effect. The components revert to their default PrimeNG styles, and Tailwind-specific utilities (including Dark Mode) are completely missing. This occurs despite the styles being correctly imported in the main stylesheet.
link repo: https://github.com/viniciuscigma/testprime
references:
https://v19.primeng.org/tailwind
https://tailwindcss.com/docs/installation/framework-guides/angular
Beta Was this translation helpful? Give feedback.
All reactions