primereact tailwind4 working config #3559
-
|
For anyone who wants to use primereact together with Tailwind v4: |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
|
Excellent! |
Beta Was this translation helpful? Give feedback.
-
|
I am trying to include primereact in next js 15.Since tailwind version is 4. I am getting the following error Below is my configuration in global.css |
Beta Was this translation helpful? Give feedback.
-
|
@skyworth01 the above fix is for Vite based installations I think NextJS is way different with how it bundles CSS. |
Beta Was this translation helpful? Give feedback.
-
|
I upgraded Next.js to 14, PrimeReact to 19, and Tailwind to 4.0. Overall, the migration went smoothly, but I noticed some changes in CSS priority and a few UI components not displaying styles as intended. Is it normal for styles to change even after a successful upgrade? |
Beta Was this translation helpful? Give feedback.
-
|
Days of debugging fixed with one line, fml |
Beta Was this translation helpful? Give feedback.
-
|
I faced the same issue recently. Why is this not documented in their official sites!! Followed the above solution and it worked. |
Beta Was this translation helpful? Give feedback.


@skyworth01 i upgraded all PrimeReact starters to Tailwind 4! https://github.com/primefaces/primereact-examples