-
Hi, after reviewing your documentation, I still wasn't sure what's the most straight forward and practical approach when working with custom Tailwind classes? We're considering creating some custom classes of commonly used patterns across our app, but it doesn't work with twMerge out of the box. Thanks ahead of time for any guidance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @b-89! 👋 The best way for this is to create a file where you configure tailwind-merge with Do you have an example of how you want to extend the Tailwind config? |
Beta Was this translation helpful? Give feedback.
Hi @b-89! 👋
The best way for this is to create a file where you configure tailwind-merge with
extendTailwindMerge
and export your customtwMerge
function, which you then use everywhere. You put all your custom classes into the object you pass as argument toextendTailwindMerge
. Where exactly depends on the classes.Do you have an example of how you want to extend the Tailwind config?