custom-cards / button-card

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

doc: add extra_styles/config template notes #710

Open Lx opened 1 year ago

Lx commented 1 year ago
afarago commented 8 months ago

I am using another workaround:

in button_card_templates:

variables:
    var_extra_styles: |-
      ...
  extra_styles: |-
    [[[ return variables.var_extra_styles; ]]]

in the actual button:

    extra_styles: |-
      [[[
        return variables.var_extra_styles + " ... "