I am using a Markdown Card to display a list of the state attributes of a card. It ranges from 0 items to 20. Can I have each item listed be a different random color?
Here it is with a single color for all items:
type: markdown
content: >
<font color = purple>{{ state_attr("climate.thermostat", "hvac_modes") |
default([], True) | join(' ') }} </font>