Has the way to style the text color changed? I have a picture-elements card with service-button elements that I set the color using --md-theme-primary as shown above. Somewhere along the line, it stopped respecting my color settings, but I don’t know when.
I searched this thread, but didn’t see any discussion of it. Maybe I missed it.
To make sure it wasn’t something else I was doing in my card, I recreated the example to confirm that this method of setting color doesn’t work anymore. I also changed my theme to the default.
Hi, I’m unable to set the color of an icon. As you can see in the screenshot below, I know card-mod is working as the icon scale was modified but all my attempts to change the icon color failed. In the screen shot, I’m showing all three attempts (individually) and none changed the color of the icon. I also tried with both state_color being true or false. I used to have custom-ui active. I tried with and without custom-ui active and again, no change to the icon color. I tried different entity and all failed to change color. What am I doing wrong? Thanks.
to the entity and as can be shown in the next screenshot, it DID change to a bed, but the color stayed to its default inactive (blue) This is getting frustrating
The icon stayed at its default blue color when inactive and yellow when active. Replacing --card-mod-icon-color: var(--my-state-color) with just --card-mod-icon-color: red turns it red so the line is working when not templated.
For some reason I can’t use variables, but that’s ok. I don’t thnk I’ll need any for what I’m doing. Of course, by just saying that means I’ll need variables somewhere lol.
Got it to work like I wanted. Movement sensor turns green if if sees movement but it’s too bright, turns yellow if it sees movement and dark (and an automation will turn the associated light at the bottom of the staircase), remains blue when no movement and will be grey if it’s unavailable for some reason. Now I need to do my smart baseboard heaters. At least, now I have something to go to.