Picture Element Panel icon colour help

Can anyone see what is wrong with my config and why I cant change the icon colour?

views:
  - background: center / cover repeat-y url("/local/89090.jpg") fixed
    badges: []
    cards:
      - elements:
          - entity: light.lifx_ensuite
            style:
              left: 74%
              top: 18%
            '--paper-item-icon-color': pink
            tap_action:
              action: toggle
            type: state-icon

        image: /local/timbertop_up.png
        type: picture-elements
    panel: true
    path: default_view
    title: Upstairs

Is it because I am using a panel rather than a card?

I took the example straight from the docs:

Indentation problem. Should be:

      - elements:
          - entity: light.lifx_ensuite
            style:
              left: 74%
              top: 18%
              '--paper-item-icon-color': pink
            tap_action:
              action: toggle
            type: state-icon
1 Like