Cogoport / cogo-toast

Beautiful, Zero Configuration, Toast Messages for React. Only ~ 4kb gzip, with styles and icons
https://cogoport.github.io/cogo-toast
MIT License
673 stars 1 forks source link

I need an API to configure custom colors #59

Closed eugle closed 4 years ago

eugle commented 4 years ago

I want to customize success,error,info... Is it possible to add this API

anmdotdev commented 4 years ago

@eugle Actually, this is already possible but was not documented. I added it to the README.

You can follow this method to define custom colors for different types of toasts. https://github.com/Cogoport/cogo-toast#custom-styling

eugle commented 4 years ago

I want something like this, The color of the icon can be controlled at the same time

image

The actual use is this

Toast.GlobalColor({ success: ’#666‘})