Replies: 1 comment
-
Hey @axyz! 👋 There are a few issues here. In Tailwind the text color classes start with I guess const twMerge = extendTailwindMerge({
extend: {
classGroups: {
'font-size': ['text-body'],
},
},
}) You don't actually need to configure colors, tailwind-merge treats all classes that aren't recognized as anything else and that could be colors as color classes by default. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm probably doing something wrong. I'm trying to use
color-*
instead oftext-*
to avoid the conflict when using a custom scale, but I still get 2 different colors in the final class list.here is my config and debug logs:
in console I see:
considering that
color-inverse
appears aftercolor-primary
in theclsx
output, I would expectcolor-primary
to be removed from the list, but instead they both appear causing a conflict.Beta Was this translation helpful? Give feedback.
All reactions