The resource works wonderfully, but itās not yet a full-fledged repo like Uix now gets. Maybe it wonāt ever, as the dev has many balls in the air.
Like a fork of fold-entity-row with an up to date version
Also to note that in this case templates will have access to params as per dialog patch. For edit card the params include cardConfig, sectionConfig and lovelaceConfig so it would actually be possible to apply CSS per these variables.
This is just to say thank you to dcapslock for your previous support to card-mod and now for this new replacement and to Mariusthvdb for all your testing - itās much more straightforward to install and is simple to switch from card-mod.
figured Iād share this, a nice improvement of my energy view
with a little (ā¦) help I managed to set a mod on a regular badge and replace the fixed name for a templated name. Since that is the whole and sole reason I had Mushroom installed, I can now delete that.
Only difference left between the regular (on the left) and the mushroom-template (on the right) is the thousand indicator
Iāve red this topic multiple times. Iāve read the UIX website and the documentation there, and I still wonder what the difference is between card_mod and this.
And, why this is (supposed? to be) better than card-mod.
I really donāt grasp the difference, and I really donāt understand why this is the way to fix a certain design flaw. (No offenseā¦)
If theming is on the agenda and important enough to HA, it just needs an extra textarea at the āadd xxx-cardā-pages, which get populated with the default CSS code and the classes/idās of the card itself.
Fixing/a workaround for such a decision is not making it easier to theme things properly right? The real problem is that there is no serious theme system in core which allows you to override/change certain or all things inside a card/page. You could only change certain CSS variables, and nothing more than that.
Does this allow me to add/change CSS properties to all cards/pages? Or does it not?
Iām sorry if iām a pain in the ass, but atm itās not clear to me what this does exactly and why it does the way it is doing it.
Darryn, I thought Iād drop this here in case itās of any use to you and\or youāre not aware of it.
I was just going through UIX docs and caught " All styles may contain jinja2 templates that will be processed by the Home Assistant backend." There is a javascript templating engine called nunjucks that mimics Jinja, and user @Nerwyn maintains an HA wrapper for it ha-nunjucks so that templating is handled in the frontend. They use it in their ridiculously configurable Universal Remote Card and it works like a charm.
Anyways implementation is out of my depth and you may have no use for it regardless, just thought Iād drop the note.