thomasloven / lovelace-card-mod

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

Change font-size and numbers of decimals #178

Closed AndersHub closed 8 months ago

AndersHub commented 2 years ago

I don't understand if I shall choose Card-mod or template then I want to change font-size and decimals in an Entity card. And I have tried both methods but no success so far. Just in this example, I try to get the "average" attribute from Nordpool. I can i.e change color but not size and round to 3 decimals. I will appreciate an answer with recommendations and code.

ildar170975 commented 2 years ago

change font-size

https://community.home-assistant.io/t/card-mod-add-css-styles-to-any-lovelace-card/120744/1186

round to 3 decimals

Create template sensor for the attribute.

Close the issue if you are satisfied with the proposed solutions.