From c49b543dc568872a69b6b93f58f5bc1bba917a09 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 7 Dec 2022 14:12:12 +0100 Subject: [PATCH] Add missing CSS variable for state color changes (#1579) --- blog/2022-12-07-entity-color-changes.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/blog/2022-12-07-entity-color-changes.md b/blog/2022-12-07-entity-color-changes.md index df6cf3e0..7e312bf8 100644 --- a/blog/2022-12-07-entity-color-changes.md +++ b/blog/2022-12-07-entity-color-changes.md @@ -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.