bokub / rgb-light-card

💡 A Lovelace custom card for RGB lights
MIT License
412 stars 24 forks source link

Possibility to change the shape #78

Open lukuhn opened 11 months ago

lukuhn commented 11 months ago

Hey it would be cool if it was possible to change the shape of the colors e.g. by using the border radius atrribut to turn the circle into a rectangle with rounded corners.

bokub commented 11 months ago

Hi,

You should be able to do that using the card-mod module

lukuhn commented 11 months ago

Yeah, but the question is how. I can't get it working

bokub commented 11 months ago

Using border-radius, as you suggested earlier

- type: custom:rgb-light-card
  card_mod:
    style: '.color-circle { border-radius: 5px }'
bokub commented 11 months ago

Sorry but I cannot read your code indentations. Please format your configuration using triple backticks

```
Like that
````