Toast Background color

How can we programmatically change the toast background color? By default it’s black. I want to change it depending on situation such as green-success, red-error… like bootstrap primary, info, warning, success, danger colors

you can use the cssclass in toastoptions
hope you got it if not
show your code
glad to help you