Change colour of single chip in mushroom card using card mod

Hi,
I am trying to channge colour of single chip, but it dorsn’t work. What is wrong with the code?


type: custom:mushroom-chips-card
chips:
  - type: template
    entity: light.bedroom
    icon: mdi:lightbulb
  - type: template
    entity: input_boolean.bedroom_motion_automation
    icon: mdi:toggle-switch-outline
card_mod:
  style: |
    mushroom-template-chip:nth-child(2)$: |
      ha-card {
        --chip-background: rgba(255,0,0,0.25);
      }

2 Likes

ever figure this out? looking too

try this one

type: custom:mushroom-chips-card
chips:
  - type: template
    entity: light.bedroom
    icon: mdi:lightbulb
  - type: template
    entity: input_boolean.bedroom_motion_automation
    icon: mdi:toggle-switch-outline
    card_mod:
      style: |
        ha-card {
          --chip-background: rgba(255,0,0,0.25);
        }