nandi95 / vue-toastify

🔥 Simple, extendable, dependency free notification plugin. 🔥
https://vue-toastify.netlify.com/
MIT License
227 stars 12 forks source link

Custom styles object? #4

Closed xlcrr closed 4 years ago

xlcrr commented 5 years ago

Hi, cool plugin. Thanks for this.

Is it possible to pass custom styles, or override the default styling? In particular, background colour, text colour, font-size.

Accepting a styles object would be a nice touch.

Many thanks

nandi95 commented 5 years ago

Not at the moment.

I'll extract the styles when releasing 1.0 into a separate style-sheets for the light and dark theme and add documentation for what class controls what element.

xlcrr commented 5 years ago

That would be great thanks !

I would love to see the ability to pass a styles object to control background color, font family, etc

Keep up the good work <3

nandi95 commented 4 years ago

Is that because you would want to change the background colour while it is being displayed? What's the benefit of passing it through JS? @xlcrr

nandi95 commented 4 years ago

Version 1.0.0 now includes option to customize styles.