How to add !important; in tailwind version 4 ? #15789
Unanswered
suraj50000
asked this question in
Help
Replies: 1 comment
-
@suraj50000, you can just add exclamation mark in front of the utility class to add Example: Tailwind example<button class="!bg-green-500">Hello</button> Vanilla CSS.button {
background-color: green !important;
} <button class="button">Hello</button> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to add !important; in tailwind version 4 ?
please share an example
Beta Was this translation helpful? Give feedback.
All reactions