-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Transition gradient not working #447
Comments
Hey @tiagobbraga! 👋 tailwind-merge doesn't have access to the tailwind.config.ts file and you need to configure it separately so it knows about the text-button class. Here is an example on how to configure tailwind-merge: https://github.com/dcastil/tailwind-merge/blob/v2.4.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/v2.4.0/docs/configuration.md#usage-with-custom-tailwind-config. Related: #368, #322, #321, #315, #302, #276, #275, #274, #250, #207 |
Thanks @dcastil! |
No problem! 😊 Let me know if you get stuck somewhere and feel free to close this issue in case your problem is resolved. |
Closing this one as resolved. |
Describe the bug
Gradient transition does not work.
To Reproduce
I applied these styles in a button:
transition-all duration-250 ease-linear bg-gradient-to-r to-color-one via-color-one from-color-two bg-size-200 bg-pos-0 hover:bg-pos-100
And too setted these extension in my tailwind.config.ts
The button has these a default style
inline-flex items-center justify-center whitespace-nowrap text-sm rounded-md font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50
But the transition does not work.
Expected behavior
E.g. Without merge:
https://play.tailwindcss.com/XFQDCOKQ8L
Environment
I removed the merge and so worked.
The text was updated successfully, but these errors were encountered: