State-Icon Color

Can I put this icon in another color? for example, being seen white instead of blue

Sin título-1

  - type: state-icon
    entity: switch.local_bano
    icon: mdi:lightbulb-outline
    image: /local/plan/button.png
    style:
      left: 34%
      top: 45%
      width: 6%
    tap_action:
      action: toggle

is this part of picture-elements card?

if so, perhaps:

- type: state-icon
    entity: switch.local_bano
    icon: mdi:lightbulb-outline
    image: /local/plan/button.png
    style:
      left: 34%
      top: 45%
      width: 6%
      '--paper-item-icon-color': white
    tap_action:
      action: toggle
1 Like