PiotrMachowski / Home-Assistant-Lovelace-HTML-Jinja2-Template-card

This card displays provided Jinja2 template as an HTML content of a card. It uses exactly the same engine as Home Assistant in Developer tools.
MIT License
68 stars 10 forks source link

Icon size #20

Closed topcat36 closed 1 year ago

topcat36 commented 1 year ago

Hello,

Is there a way to increase the icon size ? Some extra parameters like:

<ha-icon icon="mdi:car-battery" {size=150%}></ha-icon>

Thanks.

PiotrMachowski commented 1 year ago
type: custom:html-template-card
content: |
  <ha-icon icon="mdi:car-battery" style="--mdc-icon-size: 40px;"></ha-icon>
  <ha-icon icon="mdi:car-battery" style="--mdc-icon-size: 90px;"></ha-icon>

Default size is 24px

topcat36 commented 1 year ago

Super. Thanks !