-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identify Tailwind custom classes #302
Comments
I think that error is in configuration tw-merge, it doesn't take it from tailwind.config.ts file (or other extension), have same error and is going to deep inside it to fix 🙁 |
Hey @ARiyou2000! 👋 As @RomanHrynevych writes, tailwind-merge doesn't have access to the tailwind.config.js file and you need to configure it separately so it knows about the 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. |
Note to myself: Mentioned in #315 (comment). |
If you have customized the tailwind theme and find it painful to use tw-merge, is there any solution?
so that i have to do it for
so image i need to extend
|
Hey @silent-tan! 👋 The spacing theme scale is supported by tailwind-merge! You can do this and the scale will be applied to all groups that use the spacing scale. const twMerge = extendTailwindMerge({
extend: {
theme: {
spacing: [(classPart) => /^\d+px$/.test(classPart)]
}
}
}) |
Closing this one as resolved. Please let me know if there is still an issue. |
Describe the bug
I have custom border rados in my
tailwind.config.js
fileTo Reproduce
Expected behavior
Environment
It doesn't make any difference but,
Next.JS 13
Additional context
The text was updated successfully, but these errors were encountered: