t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.4k stars 2.85k forks source link

Multi color text #983

Open JanVeb opened 2 years ago

JanVeb commented 2 years ago

Hi there, really great project, playing with it for last few hours, wanted to ask if it is possible to color text in multiple different colors.

Possible use cases: for displaying note names, when learning music, it helps if each have its own color like notes C and C# are red, notes B blue etc, could be done with having colors maped to notes in a map or similar. but from what Ive seen, setting text color is only possible in css?

Another use case is for when studying tonal language like Chinese, having Chinese characters colored according to tone in which they are pronounced, example ![Uploading Screenshot-from-2018-10-04-23-38-00.png…]()

lionralfs commented 2 years ago

Unfortunately, I can't view your screenshot and without code I can't really help either. If you want to style your alerts differently, check out the theming section in the documentation.