Skip to content

How to extend TailwindMerge for borderWidth? #393

Answered by dcastil
nareshbhatia asked this question in Help
Discussion options

You must be logged in to vote

Hey @nareshbhatia! 👋

You need to wrap your config in either an extend (or override) object. This config should work:

const twMerge = extendTailwindMerge({
  extend: {
    theme: {
      borderWidth: ['sm', 'md'],
    },
  },
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nareshbhatia
Comment options

Answer selected by nareshbhatia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
context-v2 Related to tailwind-merge v2
2 participants