I have now installed card-mod for this and got it working with that.
Adding the following to the personal theme gives a nice shadow to all bubble cards (only added the standard card and media player, other types would need to be added in a similar way):
Great that you solved this. But IMO there is absolutely no need for card-mod here.
What is the exact problem and why doesn’t it work for you?
You can just define the CSS-variable in your theme and refer to it in the Styling block of the bubble cards.
(The styling-block I absolutely love by the way… If such a thing would be part of core, there is no need anymore for card-mod, and styling things would be so much easier around HA.)
Well that is what I did initially, but then I manually need to put this in EVERY SINGLE card. That is what I want to prevent with the theme, having as much general layout, which should be applied to every single card, only once in the theme.
Less rounded corners, box shadow, different standard colors, it just got more and more that I copy and pasted into every single card.
But as far as I understand, the box shadow example could not be applied to a theme without card-mod, as bubble card does not offer a direct style element for that.
Hello,
I am using a dark-mode theme, and i change the icon background color with: bubble-icon-background-color=#555 in the theme file, and it works well. But the color of climate icon seems not changed depends on state?
I love your integration, I use it a lot. But i woundered, is it possible to disable that the whole bar turns to a color when “on”? I really want to turn only the Icon to a different color when “on”.
I have looked at GitHub, but I can not find it as a possibility.
I’ve been working on this for 2 days and can’t seem to get this styling to work. I’m trying to change the sub button background color based on the battery sensor entity on my person card. I feel like this code should work but it just stays the green color (#75AD6F) regardless of the battery level being reported. Any suggestions?
Sure the color of icon will change in active/heating state. My problem is the background color of icon is black when i used this dark-mode theme, so i changed it in the theme file with bubble-icon-background-color. In that situation,the icon color will not changed in active/heating state.
Is there an option to create a light card with the brightness control similar to the volume in a media player? So instead of having the brightness in the background of the card you press a separate button which exposes a slider for brightness?
Thanks!
Hi! A slider sub-button that act like the media player volume button is in my to-do list! But this is not possible currently, or with a complex custom template.
Upgraded to 12.1 HA today, and now the bubble card will not load. Previously, if I got that error, I just had to refresh. I have, restarted, redownloaded, etc.