Can someone provide me some guidance on how to get that “Home” value to be a different color?
I’ve tried so many permutations. I really dont think i understand this structure as much as i need to… no matter how many times I read the documentation i’m just not getting it.
Here’s my latest attempt, but it might be just as far off as my first.
I’m fairly certain if someone can help me figure out how to change the styles of this value i’ll be able to understand it enough to change any other kind of element by using inspect. Thank you for your help!!
Hi can somone help me to change the location of the image
I want to push the background image(the equalizer) to right (as you could see in image that its overlapping over the artwork soo pushing it right side might make things look good)
OK – well I think i figured this out! I still dont really know WTF i’m doing, but I was able to get this to work. I’ll paste the code below and how i got here, so if some kind soul wants to educate me on what these things are it would be greatly appreciated.
One of the things i learned is that, in addition to exploring the element there is this really helpful Styles modal on the right hand side of the page that provides the elements you want to change and has the details you need to update the yaml.
This first part has the ha-card piece… (That 2nd one is what i added later to control the font-size)… And i knew (or i thought to try that) because --card-secondary-font-size: 20px; was listed under the :host that was inherited from #shadow-root (open).
When you scroll down through this Styles modal you see this other block under host which has this color item: color: var(--primary-text-color);
When I clicked on that, it took me to this section of the Styles modal I get taken to ths
Changing secondary text color had the effect i was looking for, and since i linked to it from :host (with nothing inherited from shadowroot), using :host in the Yaml got me what i was looking for.
Now, I still dont know how to use the $, or the .: but I feel like i’m on the right track. If anyone finds this helpful, or if anyone wants to correct or add onto this to help my (and others journies) it would be much appreciated.
I haven’t tested this, but my experience with card-mod is enough that I know you should try to set the --rgb-state-person-home color to what you want it to be. Try it at the first level (ha-card), and if it doesn’t work, start going into shadow-roots from there.
You might also want to check out card-mod helper it can help you find the correct path.
Edit: should have read the whole thread, I’d have seen that you managed to change the font color. The variable above and the card-mod helper are also avenues for you to explore if you plan on working with card-mod some more in the future
If someone could help me out with this so I can stop banging my head against my desk that would be great. I’m using Calendarific integration through HACS to create a custom sensor which shows the days until a selected holiday. I’ve had to modify a theme to get the colors to change. But I cannot for the life of me figure out how to get the font size to change.
Using card_mod I was able to change the icon size and the font style. But the size of the font will not change. (I know in my code it’s set to 0px but even when I change it to 500px it only creates weird spacing between everything:
Try font-size: 50px !important; sometimes this works for me.
The !important rule in CSS is used to add more importance to a property/value than normal.
In fact, if you use the !important rule, it will override ALL previous styling rules for that specific property on that element!
Hello, newby here in card customizing.
I am trying to change the color of an icon based on the on or off state of an boolean. I can change the color fixed by doing this:
ha-card {
--card-mod-icon-color: red;
}
But when I try to add the state of the boolean it doesn’t work:
hope anyone can help me out, banging my head why it doesn’t work. I found a beautiful card-mod with code and copied it in an .yaml file for !include purposes. no error, but it didn’t work. Therefore copied the code in the lovelace ui file and that gave an error:
bad indentation of a mapping entry at line 25, column 43:
… background-color: rgba(120, 200, 255,.1);
HI can somone help me to control the size of icon font in custom:mushroom-template-card
trying for few hours but no progress. would be great if someone vouch me…i have share one custom:mushroom-template-card which are vertically stacked under cardmode card
How can I modify the isolation between the entity id and the icon, and also modify the size of the icon. I have never learned CSS and do not know how to write this format. I can modify both properties at the same time