How to extend grid-template-columns in v4? #18640
-
Hey! In v3 it works like this:
How can we achieve the same in v4? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
In addition, we also need to safelist them. In V3, we did this in the tailwind.config.js file as well:
|
Beta Was this translation helpful? Give feedback.
-
I found the way, I extended grid-cols- in
And after safelisting it like this
|
Beta Was this translation helpful? Give feedback.
-
Actually this is not working:
The old ways with extend in js config is still working with v4, all I needed was just safelist them |
Beta Was this translation helpful? Give feedback.
-
this may be useful: generate utilites + safelisting in one place |
Beta Was this translation helpful? Give feedback.
Actually this is not working:
The old ways with extend in js config is still working with v4, all I needed was just safelist them