v4: md:gap-y-8
and custom classes
#16074
Unanswered
frederikhors
asked this question in
Help
Replies: 1 comment 1 reply
-
Hey! This is because we use native cascade layers, and styles that aren't in layers always defeat styles that are in layers. This will work: @import 'tailwindcss';
@layer components {
.custom {
@apply grid gap-6;
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With Tailwind 3 this works:
With Tailwind 4.0.1 the
md:gap-y-8
doesn't work, but it works if I use!
, why?I'm using vite config with this:
Beta Was this translation helpful? Give feedback.
All reactions