Hi, I would like to remove the background of the tile card completely. Is this only possible with card-mod or can the background be removed also anyhow overall?
Edit: Just saw that card-mod can also apply changes on theme level, which could be an option as well.
Unfortunately I did not manage to get a respective theme working. If someone has an idea, I would be very grateful. Here the code I have identified so far… don’t know what could be wrong
Unfortunately the magic last step is still missing (as yesterday). I’m able to change the background of ha-card, icon-container, etc., however I’m not able to get access to the div class shape with the theme card-mod.
Sorry maybe a misunderstanding, I agree I should have been more precise. I was referring to the first post (changing the icon background colour) and with completely I was referring to the whole dashboard (instead of doing the card mod).
Try to see, what I did and compare both examples with your DOM-screenshot. And you will get used to see, how to ingest what and where and how.
BUT: card_mod theme is not my favorite, because it is applied/ingested/activated sometimes delayed and you have sometimes a lot of flickering. So perhaps better to mod the card directly (most of the times faster). So oder so, see, that I have overwritten the transition as well to at least reduce such things.
Fantastic @arganto. A single | was too much in my code trials.
I have never used card-mod in the past, I appreciate your tips.
Thank you and happy new year
IMHO the icon’s background for the Tile card (depending on the icon’s color, I guess) looks very nice.
Yes, it does look differently from other cards…
May be an option like “disable_icon_background” for Tile card (“false” by default) could a possible way?
I really like the way I did it with the help of @arganto.
It is much better in my opinion than the colour of the icon itself.
Should it be integrated in HA? I wish but most probably not.
But, as @KNXBroker said, it is always possible that it will break in a next version of HA. Will go back to my configuration then
would appreciatie a sharp eye if at all possible.
thx!
btw, the flickering is horrific in the mushroom config in my setup. Maybe that is caused by another custom card, have to find that too ofc. Though I have no other card that does that
Thanks!
I had made a mistake, and forgot to set the main config item in my card to ‘color’ (it was stil icon_color), and also had that still in the mod…
@arganto do you have any idee how may I change the font-size for all ha-tile-info .primary from the theme configuration file. i’m struggling for more than 10hrs.
Thanks!
I am trying to use the examples above to completely hide icon and the title, to keep only buttons for target temperature using climate entity but cannot reach the result. Any one with a little time to provide me with card mod code please?
using following yaml, I could achieve the following, but need to edit CSS directly to get rid of the icon background and the tiny icon.
Please open a new thread, this is not related to my initial question.
I have an answer for you but I’ll give it in the new thread, for other people to find it when needed.