Theme - change colour of Zone

Hi I would like to have the text change colour depending on zone or state is this possible. I have templates set to monitor “Home” and “Away” status as online or offline. I would like the text to show red is device state is offline.

Is this possible with themes?

I’m pretty certain you can do this with custom_ui.