Replies: 2 comments
-
Also I've seen this where he says you don't need to extend colors. But the regular twMerge isn't working either |
Beta Was this translation helpful? Give feedback.
-
Hey @J-Amberg! 👋 Thanks for your patience. As you mentioned in #550 (comment), you indeed don't need to configure color classes. tailwind-merge detects all classes like
This gives me the indication that your problem is not with tailwind-merge but rather Tailwind CSS. You can't use dynamic classes like |
Beta Was this translation helpful? Give feedback.
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 have variables defined in my tailwind theme
However, when I try to use these variables with twMerge they do not work. I've tried extendingTwMerge in a multitude of different ways:
this is the only config I've gotten to work somewhat. Note if I hardcode the value like 'bg-cell3-3' then it works but when I'm trying to do it dynamically like
bg-${color}
where color = 'cell3-3' then it does not work. In this config I have the text-cellX-X working properly but still border color and background color are not working.works
Does not work
Does anyone have any ideas?
thanks so much, been messing with this for hours
Beta Was this translation helpful? Give feedback.
All reactions