I have some styling code with which I would like to define the background of a button according to the background color of an icon on another button.
Is it possible to get the color from another button?
ha-card {
.bubble-button-background {
background: rgb(239, 149, 149) !important;
color: black !important;
}
.bubble-name {
color: black !important;
}
}
.bubble-state {
color: black !important;
font-weight: bold !important;
}
}
I want to replace the “hardcoded” color with a reference to the color on another button. Is this possible?
Thanks for any help or pointers
Rob