Can't create custom responsive class #3594
Unanswered
renanyudimt
asked this question in
Help
Replies: 1 comment 2 replies
-
@renanyudimt First, the "v" in "variants" should be no capital letter. @tailwind base;
@tailwind components;
@tailwind utilities;
@layer utilities {
@variants responsive {
.h-50px {
height: 50px;
}
.h-76px {
height: 76px;
}
}
} Then, in your example you are using |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Im trying to create custom height classes named in example: h-50px and h-73px, Im importing all the tailwindcss and layers/variants, but i cant make those classes work into responsive breakpoint.
I dont know if im lack of knowledge, but i think it should work.
here is an example not working:
<div className="h-50px lg:h-73px container flex content-around mx-auto"></div>
Its always 50px
Beta Was this translation helpful? Give feedback.
All reactions