Mushroom card inside grid with card_mod

hi,
I’m trying to add card-mod into mushroom card and i get an error.
what I’m doing wrong in the card-mod?

square: false
type: grid
cards:
  - type: custom:mushroom-entity-card
    entity: switch.kids_bathroom_lights_l1
    name: Kids bath 1
    layout: vertical
    icon: mdi:lamp
    fill_container: false
    primary_info: name
    secondary_info: state
    tap_action:
      action: toggle
    hold_action:
      action: none
    double_tap_action:
      action: none
      card_mod:
        style: |
          :host {
          color: green;
          text-align: left;
          font-size: 17px;
            --card-mod-icon-color:
            {% if states(config.entity)=='on' %}
               yellow
               color: yellow;
            {% else %}
              green
            {% endif %}
          } 

The error

Visual editor is not supported for this configuration:
At path: double_tap_action.card_mod – Expected a value of type never, but received: [object Object]
You can still edit your config in YAML.

You are trying to “mod” a double_tap_action ( NONE ) … with " Card-Mod " …move card_mod section “in” in.line with ( -type/entity:) … and make sure your “intents” are right

PS: however

THIS is not an “Error” , because

thank for your help.
i want it to be applies for all the card. so where i need to put all the card_mod section?

in-line with cards

what do you mean exactly?

under each card, … any particular reason why you use “grid-card” (with no specific “preferences” ) ?

PS:

Please note the “NOTE” section :wink:

it gives me an option to align things etc… i can use the card_mod very good with regular grid + reguler entity card all is working as excepted but it’s not working good with regular grid + mushroom entity card or only with mushroom entity card only. so the problem is with the mushroom entity card and the card_mod

well, as i don’t see your “view” or know/understand how it looks or how you want it to look, i can’t give you any hints

This can be accompliced in many ways

I.E As you don’t specify “columns” in your grid-card, i assume you only use 1 column, which means you could/might as-well use grid/entities:entity and place the “mutual/for all cards, card_mod” under “entities”

But as i have no clue how your “view” is defined (i.e default-masonry/grid/vertical-horizontal_stack etc)
Your “showing/asking” for card_mod in a grid_card( which limits your options )
If you want multiple “- type: custom:mushroom-entity-card” i this grid_card , you need to decide whether they should be vertical or horizontal ( meaning are these “custom:mushroom-entity-card” above each other or beside each other
If vertical, use “entities”