Mushroom Cards - Build a beautiful dashboard easily 🍄 (Part 1)

Does the template card support using the HA color variables?

Can I, for example use the following code?

It doesn’t seem to work for me, but instead just shows the icon as black, but if I replace the variable with just a simple color like: “red” it works.

icon_color: >-
  {% if is_state('switch.media_room_switch','on') %}
    var(--state-light-active-color)
  {% else %}
    var(--state-light-inactive-color)
  {% endif%}