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
Doesn't play well with TailwindCSS (or any other utility framework) #101
Comments
I think you can unset the background property for default and set className to bg-green-500. Maybe i'm wrong but give a change :) |
@Shitric thanks for helping, but |
Importing the toastify css file before the tailwind layers in your CSS file would change the specificity as per your need. |
@apvarun well that is not simple. I'm lazy loading the css needed by toastify-js... but I'll try it anyways! |
Solved using |
... because of the style
background: linear-gradient(135deg, #73a5ff, #5477f5)
applied by default.TailwindCSS uses the
bg-
utility class to change the background color. Passing the optionclassName
doesn't work of course, because of the background property:This is annoying because most of the time the primary purpose is to change the background color. Is there a way to unset (maybe using some options) the background itself, and use my
bg-green-500
class?The text was updated successfully, but these errors were encountered: