Having a mushroom-light-card like this:
- type: custom:mushroom-light-card
entity: light.guest_room_floor_lamp_power
name: Stehlampe
layouertical
card_mod:
style: |
ha-card {
background-image: linear-gradient(270deg, rgba(255,255,255,1) 20%, rgba(160, 147, 125,0.7) 100%) ;
}
Instead of entering the rgb color here, I want to take it from theme somehow with var(--room-color-dining-room)
What is the correct syntax?
Will write somthing like: rgba(var(--room-color-dinin-room), 0.7)
Have to add, that room-color-dining-room: is defined like this '181, 207, 183".
I assume, I have to deal somehow with a string here to use var with rgba.
And I need rgba(var..., since the color is defined without opacity.