Icon color - theme

Hi,
is there a way to have the icon color “red” when active state?
Using this var no success…

state-icon-color: red
state-icon-active-color: red
state-icon-unavailable-color: red
paper-item-icon-color: red
paper-item-icon-active-color: red

theme

Or use card_mod:

card_mod:
  style: |
    :host {
    --card-mod-icon-color:
    {% if states('person.person') == 'home'  %}
    green;
    {% else %}
    red;
    {% endif %}
    }