CustomUI - badge color change depend on value

Hi @andrey

Thank for Custom UI - great job!

I saw many posts about icon color change and how to do it - it’s great but I couldn’t find any information about badge color change depend on value. I have a temperature badge and want to change its color when will be to hot or to cold. Is this possible? Couple days ago I saw some screenshot of somebody dashboard with changed badge color but I couldn’t find it now.

UPDATE:
I don’t know why I didn’t find this solution. Sorry.

happy to oblige;-)
let us know if you run into trouble…
btw, the badges on top of the page in my situation are created in a python script so needed another approach , set theming in the script itself.

01

Working fine now, thanks to @mviezzer!

Cheers,
Marius

1 Like

Woderfull! Could you share your code? Because my next step will be status bar with badges on top of page (without grouping) and your solution will help me a lot I think. Thanks!