Change color of icon based on state on/off for doors and automation

I’m playing around with Lovalece and would like to take away the state information everywhere to make the UI more clean, but then I realize that the colors of the icons don’t change for doors, automations or input boolean. The only solution I have seen in this forum is for sensors.

Can I do something with Lovelace, themes or customize.yaml?