Resolve color name to CSS class(es)

Is there any public method which can resolve color names (such as success, warning, etc.) to the underlying CSS class(es). The reason I'm asking is that I'm creating a custom table column, and it makes sense to re-use the getColor method which exists on an enum field that uses the HasColor trait, however this returns the color name rather than something that can be output.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?