home-assistant-custom-ui: Some of the new CSS variables (0.51) not working with theme per-entity
Example:
paper-card-background-color
applies a custom color when a general theme is used.
However, it does not apply any change when it is used with theme per-entity.
The goal is something like below.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (3 by maintainers)
Well, one solution could be to do it like this ;
… and …
And then the same thing could also work for the background colours…
Sure it’s maybe not the most elegant solution, but hey it works… You could do it more elegantly with a glob instead I guess. Anyway following the rules above you can now customize with
state_card_mode: badges
but also withstate_card_mode: badges_blue
etc.Which brings me to another question I was wondering about… Why limit the badges option to groups only (necessitating the complicated put-your-inner-groups-in-outer-groups thing)? Can’t you remove the
&& domain === 'group'
part? (I tried it quickly but doesn’t seem to work for some reason 😒)