-
|
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: 3 comments 11 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.
-
|
Why change it to the end again? In v2 or something, it was at the end, then it moved to the front, and now it's back at the end. WTF… Create new things, don’t change what already works. |
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: