[v4]: How to set important
as the tailwind.config.js
in new Tailwind v4
#15163
Replies: 3 comments 1 reply
-
As per the documentation:
Although this is talking about the JS config, I could not find any mention of an equivalent |
Beta Was this translation helpful? Give feedback.
-
To set everything to be @import "tailwindcss" important; Haven't tested but maybe it works when you import third party CSS too? |
Beta Was this translation helpful? Give feedback.
-
I was having some issues while using |
Beta Was this translation helpful? Give feedback.
-
In v3, I have to use
important: "<parent_id>"
so that tailwind overrides the styles of some third-party library (like: Material UI). How can I setup the same thing in tailwind v4?In v3, after setting
important: "<parent_id>"
, output becomes:Beta Was this translation helpful? Give feedback.
All reactions