Tailwind v4 has no important
option support
#15866
Answered
by
wongjn
martin-dimi
asked this question in
Help
-
I tried updating tailwind to v4 today, but I noticed there is no support for the In my case, I have a chrome extension which injects dom onto some pages. I use the important cause like this |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Jan 25, 2025
Replies: 1 comment 8 replies
-
You'd replace the @layer theme, base, components, utilities;
@import "tailwindcss/theme.css" layer(theme);
@import "tailwindcss/preflight.css" layer(base);
@theme {
/* ... */
}
@layer utilities {
#my-extension {
@tailwind utilities;
}
} |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
martin-dimi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'd replace the
@import "tailwindcss";
with: