custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.97k stars 242 forks source link

Dynamic box-shadow color #664

Closed ripvega closed 1 year ago

ripvega commented 1 year ago

Is it possible to have the color of the card box-shadow change with the state of an entity?

Currently I have: card:

I can't figure how to define the size and color separately.

RomRider commented 1 year ago

you can use javascript templates for the value of box-shadow