Replies: 1 comment 3 replies
-
As per the Sass docs:
Thus, you can rewrite the @import "tailwindcss/index.css" important; And you should not get any deprecation messages. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to import Tailwind CSS v.4 and set important globally.
// This is deprecated
@import "tailwindcss" important;
// This throws an error: [ERROR] expected ";".
@use 'tailwindcss' important;
I use @apply a lot to reuse component styles, and some of the classes lists with @apply can be very long. I don't want to append '!' to each and every class inside, as it doesn't look elegant at all.
@import
is DeprecatedBeta Was this translation helpful? Give feedback.
All reactions