flixlix / power-flow-card-plus

A power distribution card inspired by the official Energy Distribution card for Home Assistant
501 stars 59 forks source link

[SUPPORT] #601

Closed Jack77777777 closed 2 months ago

Jack77777777 commented 2 months ago

Is it possible to have different colours for first and secondary Info of an individual?

For example first yellow and second blue. I would like to avoid that one is white but the two different coulours.

flixlix commented 2 months ago

hey there, the only way I can think of doing this is by using card mod.

card_mod:
  style: |
    ha-card {
      --icon-individual-left-top-color: #f00;
      --secondary-text-individual-left-top-color: #0a0;
      --text-individual-left-top-color: #00f;
    }

the issue with this is that it's not dynamic, meaning your top left entity will always have these colors, not matter what

Jack77777777 commented 2 months ago

Excellent. Tahnk you