Ignore / exclusion class group #169
Unanswered
AleksiKytola
asked this question in
Help
Replies: 1 comment 2 replies
-
Hey @AleksiKytola! 👋 You need to add those values into your tailwind-merge config like this: const twMerge = extendTailwindMerge({
classGroups: {
'font-size': [{ text: [validators.isLength] }]
}
}) Without this, only the default font-sizes scale consisting out of T-shirt sizes works. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My project has some custom fontSizes specified in tailwind config. These get merged with text colors such as text-blue-900 or custom colors like text-primarytext.
twMerge("text-32 text-primarytext")
outputstext-primarytext
onlyI couldnt find any config to create some ignore rule for these so that tw-merge wouldnt merge them. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions