Can anybody tell me the style configuration I need to change the text color for a ‘label with state text’ in lovelace?
I’ve got started with doing a floorplan thing on one of my views, and the background for the floorplan is white. On the other views I use themes so I only want to affect the text color of these labels, but on two of my themes the text color comes back as white.
In the same themes the basic icon color was white, which I was able to override with:
style:
'--paper-item-icon-color': blue
'--paper-item-icon-active-color': '#F9C536'
But I can’t work out how to override the color for the text in the labels if anyone can give me a clue please?
I’ve tried:
style:
'--primary-text-color': black
'--text-primary-color': black
'--paper-grey-50': black
'--label-badge-text-color': black
But it’s still white on white, which is kinda hard to read
The quotes are added automatically by the ui editor thingy every time I click save, but maybe the clue is that you’ve used ‘secondary’ as one of your options.
I’ll give that a punt when I get back to my laptop
interested what your result will be. I specifically use these color settings to enable automatic theme-following in customizing. My example was from a weather card that uses 2 different backgrounds depending on sun.sun.state which are a lighter and a darker variant.
Fonts have to stick out.
hmmm, too bad. Balloobs remark theming isn’t and won’t be supported today in another issue concerning themes and Custom-ui dent make me very happy, but sofar my badges are themed with these themes:
green_badge:
label-badge-red: green
label-badge-background-color: white
label-badge-color: grey
label-badge-text-color: green