[v4]: How to set important
as the tailwind.config.js
in new Tailwind v4
#15163
Replies: 4 comments 5 replies
-
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.
-
There are still no way of doing this? I mean to use an id or class instead of important? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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