Best practice for conditional css

So I’m new to statamic and keep finding myself creating if/else conditionals to handle text formatting (color, font-weight, etc). Feels wrong each time, assuming there is an easier way to handle in antlers.

Example, if a value is: - foo - green text - bar - red text - baz - purple text

How should I be coding for this?

>>>>>>> Unanswered <<<<<<<
1 Reply