-
Hi, In v3, when I use @apply directive in .scss file, I use #{!important} interpolation and it's working perfectly Since v4, I now have the following error
I search in the v4 docs, but didn't find anything similar to the v3 (https://v3.tailwindcss.com/docs/using-with-preprocessors) Do you have any tips to keep the "important" tag in my @apply ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You could apply the important modifier tag to each element: .foo {
@apply text-2xl! text-red-200!;
} As an aside, Adam Wathan (creator of Tailwind) does seem to advocate avoiding |
Beta Was this translation helpful? Give feedback.
-
What if I want to make all the classes important by default, line v3 configuration property named |
Beta Was this translation helpful? Give feedback.
You could apply the important modifier tag to each element:
As an aside, Adam Wathan (creator of Tailwind) does seem to advocate avoiding
@apply
: