Skip to content

Custom classes getting removed #315

Answered by dcastil
themashcodee asked this question in Help
Discussion options

You must be logged in to vote

Hey @themashcodee! 👋

tailwind-merge doesn't have access to the tailwind.config.js file and you need to configure it separately so it knows about the text-xxs class.

Here is an example on how to configure tailwind-merge: https://github.com/dcastil/tailwind-merge/blob/v1.14.0/docs/recipes.md#adding-custom-scale-from-tailwind-config-to-tailwind-merge-config.

And here is the documentation on how the tailwind-merge configuration works: https://github.com/dcastil/tailwind-merge/blob/v1.14.0/docs/configuration.md#usage-with-custom-tailwind-config.

Related: #302, #276, #275, #274, #250, #207

Replies: 2 comments 2 replies

Comment options

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

Answer selected by themashcodee
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
context-v1 Related to tailwind-merge v1
3 participants