How to dynamically change state-label color

Hi, folks! :slight_smile:
I’m struggling with something. I have a floor plan realized as picture entity in LovelaceUI. I’m showing the temperature, humidity and air pressure as state-label. I want to dynamically change the color of the state-labels when the temperature changes (blue for cold, green for normal/comfortable etc …). As you can see I have no luck with this task yet … :smile: And I’m bagging you for help! I have latest CustomUI installed. From these 3 state-labels the first is in black, because I removed “color: white” from the styles. It is called “sensor.livingroom_temperature”.You can see what I already tried to color it. Thank you in advance for your help and ideas! :slight_smile:

label1
label2
label3
label4