Styling does not work on card_generic_swap

Hi,

I have this bit of code sitting in one of my UIs and I use the card_generic_swap component from the minimalist library. The bits on the code which I have indicated as “#does not work” is where I’m having trouble with. Can someone please see if I’m doing something wrong.

      - type: "custom:auto-entities"
        card:
          type: "grid"
          columns: 3
          square: false
        card_param: "cards"
        sort:
          count: 3
        filter:
          include:
            - entity_id: /chors_responsibility/
              options:
                type: "custom:button-card"
                template: card_generic_swap
                tap_action:
                  action: none
                styles:
                  icon:
                      - color: 'red' #does not work
                state:
                - value: 'Garbage removal and bathroom cleaning'
                  styles:
                    card:
                      - filter: brightness(40%) #works
                    icon:
                      - color: green #does not work
                    label:
                      - color: red #does not work