🔹 Card-mod - Add css styles to any lovelace card

code
type: entities
entities:
  - type: button
    name: entity specified
    entity: input_boolean.test_boolean
    tap_action:
      action: none
    card_mod:
      style:
        ha-state-icon $ ha-icon $: |
          ha-svg-icon {
            color: magenta;
          }
  - type: button
    name: entity NOT specified
    tap_action:
      action: none
    card_mod:
      style:
        ha-state-icon $: |
          ha-svg-icon {
            color: cyan;
          }

Main post here.