-
-
Notifications
You must be signed in to change notification settings - Fork 714
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
Ability to change font-family #107
Comments
I don't know why I didn't think about it before. Thanks @bogdansoare for the suggestions. |
Hey @bogdansoare, Actually, it can already be done: For all toast: <ToastContainer toastClassName={css({ fontFamily: "Times New Roman, Serif" })} /> Per toast: toast(content, {
className: css({ fontFamily: "Times New Roman, Serif" })
}); Anyway, I'll probably allow to set it via the style helper. |
Feature released. |
Hi @fkhadra . I use style hepler to set font family for ToastContainer but it doesn work: |
Put styles in CSS class adn apply it with |
didn't work. Which css()? I have one in Chakra. Doesn't work. Why can't this be normal scss modules? |
Thankyou... this has been helpful to me.. :) |
thanks |
A better way to do it would be to override the css variable "--toastify-font-family" If you want to inherit from body you can do:- Or if you like to override it then:- |
put : in your .css file |
In my case, I needed to use my project's font, so I just use |
Is there anyway to change the font-family?
Or maybe let it inherit from the body and not set it as
sans-serif
The text was updated successfully, but these errors were encountered: