Replies: 1 comment 1 reply
-
Can anyone answer this? I need to do the exact same thing, but in my case, the class has many different styles. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble to understand on how to add properties to existing class.
Example: Current
min-h-screen
is defined as below:I want to add an additional property to cater the notorious vh bug on mobile as below:
How do I extend existing class property? I've tried to follow the documentation and made my
tailwind.config.js
as below:However, when the css file is render,
min-h-screen
is override instead as below:How do I add property as I intended without overriding current class property?
Edit
I've update my
tailwind.config.js
as below:And it produces the result as intended. However is this the correct method to do it?
Beta Was this translation helpful? Give feedback.
All reactions