-
Hello, I use the tailwind plugin Unfortunately, it does not work that
I hope someone can tell me how to extend the twMerge configuration to resolve these classes correctly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @elbracht! 👋 tailwind-merge doesn't know about the custom classes from the Taiwlind plugin out of the box and you need to configure it separately so it knows about the classes like Here is an example on how to configure tailwind-merge: https://github.com/dcastil/tailwind-merge/blob/v1.14.0/docs/recipes.md#adding-custom-scale-from-tailwind-config-to-tailwind-merge-config. And here is the documentation on how the tailwind-merge configuration works: https://github.com/dcastil/tailwind-merge/blob/v1.14.0/docs/configuration.md#usage-with-custom-tailwind-config. For myself: |
Beta Was this translation helpful? Give feedback.
Thanks for your patience @elbracht (have a packed week over here)!
The color classes available to tailwind-merge are configured in a way that they accept any values that don't belong to other classes, which makes their configuration a bit simpler.
E.g. I'd configure it like this: