-
Notifications
You must be signed in to change notification settings - Fork 0
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
Customization #2
Comments
Hello! Just create a CSS class and pass it through By the way, I'm working on new version of this package, feel free to suggest features if you want :) Thanks! |
I'm a little bit confused on how to do it. Could you give me an example please? Thank you for your support! |
Sure, @synpse! Follow this steps:
.custom-confirm-toast-theme {
--confirm-toast-bg: aquamarine;
--confirm-toast-msg-color: purple;
--confirm-toast-icon-color: black;
--confirm-toast-btn-yes-color: lightgreen;
--confirm-toast-btn-no-color: pink;
--confirm-toast-btn-yes-bg: green;
--confirm-toast-btn-no-bg: crimson;
--confirm-toast-btn-hover: 0.9;
}
<ConfirmToast
childrenClassName='custom-confirm-toast-theme'
// Rest of the props you need
>
<button>Your component</button>
</ConfirmToast> And with this you are done! |
How can I customize a theme? I can probably override existing themes, but can I create a new one? If yes, then how?
The text was updated successfully, but these errors were encountered: