Color Button Toggle

Is there a way to change the icon state color in a built in button?
I am making a dashboard and its blue when its off, and yellow when on, but i’d like to change it. Or better yet change the icon depending on state.

If you use Mushroom cards: I use the Mushroom template chip with this configuration:

ICON:

{% if is_state("switch.schedule_woonkamer_stofzuigen", "on") %}
                      mdi:robot-vacuum
                    {% else %}
                      mdi:robot-vacuum-variant
                    {% endif %}

ICON COLOR:

{% set state=states('switch.schedule_woonkamer_stofzuigen') %}
            {% if state=='off' %}
            red
            {% elif state=='on' %}
            green
            {% else %}
            white
            {% endif %}

CONTENT:

{% set state=states('switch.schedule_woonkamer_stofzuigen') %}
            {% if state=='off' %}
            No vacuum
            {% elif state=='on' %}
            Vacuum on
            {% else %}
            No vacuum
            {% endif %}

BRILLIANT! I’m going to be digging into mushrooms now!