Replies: 1 comment 4 replies
-
Hey @bguggie! 👋 I think the reason is that the label you're using is incorrect. It should be |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How does one resolve the conflict between
font-family
andfont-weight
with arbitrary values?EX:
twMerge('font-(family-name:--custom-family) font-(--custom-weight)')
-> returns:
font-(--custom-weight)
expected:font-(family-name:--custom-family) font-(--custom-weight)
twMerge('font-(--custom-weight) font-(family-name:--custom-family)')
-> returns
font-(family-name:--custom-family)
expected:font-(--custom-weight) font-(family-name:--custom-family)
I am assuming this needs a custom
tailwind-merge
config but I can't get it to work. Any help is appreciated.UPDATE: original post had incorrectly included
font-family
as type label for disambiguation but the issue actually still happens with the correctfamily-name
. above example has been updated accordinglyBeta Was this translation helpful? Give feedback.
All reactions