But how can I change the color of the secondary_info element? And if I use font-weight it changes the overall font weight … what if I only want the secondary_info in bold?
card_mod:
style: |
ha-card {
color: red;
font-weight: 800; #CHANGES OVERALL :(
secondary-text-color: blue; #DOES NOT WORK
}
Use F12 in chrome to see if it uses a separate variable, then apply the change on just that variable. If that’s not possible, you need to modify the style selector to only grab the secondary_info element. This will vary card by card. There’s a whole card mod thread where you can ask for help with that or look up examples where other people may have solved this problem.
Ok progress … correct syntax for the secondary-text-color is “–” so the following works:
card_mod:
style: |
ha-card {
color: red;
#font-weight: 800; #Would change all text to bold
--secondary-text-color: blue; #Changes Secondary Text to blue
--secondary-text-font-weight: 800; #DOES NOT WORK :(
}
Now I just need the font-weight for secondary text.
Any lock with this so far @pixelwave ? I’m also trying to change what would be the font-size of the secondary text (a status displayed as text on a button card). I’m using card-mod but just like you, I’m only able to change color and not font size. let me know if you figure it out.