Add missing CSS variable for state color changes (#1579)

This commit is contained in:
Paul Bottein 2022-12-07 14:12:12 +01:00 committed by GitHub
parent c17069a443
commit c49b543dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,9 +4,12 @@ authorURL: https://github.com/piitaya
title: "Entity state color changes"
---
From the Home Assistant Core 2022.12 release, we are using different colors per domain when an entity is active. The `--paper-item-icon-active-color` CSS variable is no longer used.
From the Home Assistant Core 2022.12 release, we are using different colors per domain when an entity is active. These CSS variables are no longer used:
This means that any theme that has previously overridden this CSS variable will use the built-in colors for active states. All theses new colors are available as CSS variables too.
- `--paper-item-icon-active-color`
- `--state-icon-active-color`
This means that any theme that has previously overridden these CSS variables will use the built-in colors for active states. All theses new colors are available as CSS variables too.
:::caution
As we only officially support the `primary-color` and `accent-color` properties for themes, some colors can be added or removed between releases.