That was super helpful. I was still struggling for a moment there because the border I set was at “custom:mushroom-chips-card” level and it was a rectangle without rounded corners. But when using card mod at “type: template” level it worked and has rounded corners, as intended.
Yay With your examples I can continue working on styling everything again. Thank you so much again! Do you have a link so I could buy you a beer/coffee?
thank you so much for this. Would have saved me so much time had I had this a year ago. One struggle I have is that I use horizontal layout with the icon and the brightness or percentage control which collapses when not on so i can see the full name of the entity ie Bedroom. But when on the slider truncates it to Bed… or whatever. I can use vertical but that doesnt work with my overall layout, too high. Id rather have the name either in front over the top of the slider or right under neath it making the slider a little more narrow to accomodate the name in a smaller font.
EDIT: updated code below to make the friendly name of the entity dynamic with a template rather than user input. Can still be changed to a different name if you just write content: "Your Name Here"; instead of the template that is there currently.
Ty Ty Ty. I love the 3rd one. You read my mind. Only issue is when turned off there is no name. If i add a name: then it shows twice wehn its turned on, in the brightess control and behind it.
on a smaller screen like my phone it doesnt matter because the brightness slider covers it all
of course feel free to adjust the text color in the slider to make it more visible, i only use that var because then it works on both light and dark mode technically.
again thanks. just the brightness control does not adapt to different sizes, ie if i have 2 cards in a 2 column grid the brightness control is longer than the card.
I’d like to increase the entire icon size for the template cards. They are too small to be readable on my hub. However, the CSS listed in post #13 for template cards doesn’t seem to work. What am I missing?
For reference, this is what it looks like right now, and I’d like the icons to be readable from at least a couple feet away.