artem-sedykh / mini-climate-card

Minimalistic climate card for Home Assistant Lovelace UI
MIT License
262 stars 19 forks source link

Change color of main icon #135

Closed razsteinmetz closed 8 months ago

razsteinmetz commented 8 months ago

Hi, Maybe you can give an example how to change the color of the default mdi:air-conditioner? I was able to change all other icons colors with the style entry, but how do you change the main icon color? many thanks

regevbr commented 8 months ago

Currently, you can't from code. You can hard code it using CSS variables in the theme

off: --mini-climate-icon-color/--mini-climate-base-color on: --state-binary_sensor-active-color

A PR is more than welcome to add that ability if you desire