Custom-Card change color of Icon

Hey guys,
i try to change the color of the icon when sensor.lights_on_count greater 0. I tried different things. But nothing works. Any ideas?

Go to main card-mod thread- 1st post - link at the bottom titled “fantastic” - Heading card