So i have a card set up to turn off a boolean to remind me to give my dog his medicine.
I got the background to be the red i want but the text/icon are still that blue and not white like i want. I used chatgpt to generate the code but it wont work still with going to white. Here is the code
type: button
tap_action:
action: toggle
entity: input_boolean.buzz_evening_pill_boolean
show_name: true
show_icon: true
name: Give Buzz his pill
visibility:
- condition: state
entity: input_boolean.buzz_evening_pill_boolean
state: "on"
card_mod:
style: |
ha-card {
background-color: #cc0000 !important; # Darker red background
color: white !important; # White text color
opacity: 1 !important; # Ensures no transparency (fully opaque)
}
.card-content {
color: white !important; # White text color
}
.name, .name > span {
color: white !important; # White name text
}
.icon {
color: white !important; # White icon color
}
.icon > * {
fill: white !important; # Apply white fill to SVG icon
stroke: white !important; # Ensure stroke is also white
}