Mushroom Chip Background

Mushroom chips cant change background color.
Text color works.

Running card mod 3.4.5

image

type: custom:mushroom-chips-card
chips:
  - type: template
    content: Info
    card_mod:
      style: |
        ha-card {
          color: {{ 'green' if is_state('input_number.lynet_macroin_tabs', '1.0') else 'red' }}
        }
    icon: mdi:car-info
    tap_action:
      action: perform-action
      perform_action: input_number.set_value
      target:
        entity_id: input_number.lynet_macroin_tabs
      data:
        value: 1

try --chip-background:

I really really thought i tried that 30 times, and it didnt work. But now it does! Thanks so much for your reply!

1 Like

no problem, I had a similar problem with a card I was messing with. I must of stared at the yaml for hours just didn’t want to work.
PMed another user… had card_mod in the wrong place !

1 Like