thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.05k stars 169 forks source link

Different Styles #291

Closed Maddin1684 closed 6 months ago

Maddin1684 commented 11 months ago

Hey everyone. I have this code:

card_mod: style: | :host { --label-badge-red: {% if is_state('person.r', 'home') %} #30d158 {% else %} #ff4040 {% endif %}; }

How can I „add“ this code on top?

style: ha-state-label-badge: $: ha-label-badge: $: | .badge-container .label-badge .label span { color: blue; font-size: 6px !important; }

is this possible? Both codes together doesn’t work.

ildar170975 commented 11 months ago

Suggest to ask similar questions in the card-mod HA community thread and use Github only for reporting bugs & proposing FRs.