Purple garage doors anybody?

For a long while now I have been annoyed by the fact than an open (active) garage cover showed a purple icon rather than an amber icon as everything else. I have seen people make the same remark on the forum but had not found a solution. So one whole Sunday of trial and error later:

This needs to be added to the theme to fix that:

# Frontend
frontend:
    themes:
        my_mods:
            modes:
                light:
                    state-cover-garage-open-color: "#ffc107"
                dark:
                    state-cover-garage-open-color: "#ffc107"

You have to use the modes else it only works in light mode.

I added it in the configuration.yaml file (since it is the only deviation from the standard theme I have), but it can be a separate theme file of course.

I named the theme ‘my_mods’, but it could be anything. You have to select the ‘my_mods’ theme to activate the mod, but everything else stays default.

Nowhere in the documentation could I find the default amber color to use, so I used a color picker to find it.

The example in the official document states ‘garage_door’ rather than ‘garage’, which does not work. I suggested an edit in the official documentation.

I hope to save some people some frustration and a lot of time.

Use var(–amber-color) for default theme amber

Yes! That works, thank you.

I had tried a wide variety of var statements but did not find it.