From c17069a443fe191323a3072018e07fb094bb3141 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 7 Dec 2022 12:06:46 +0100 Subject: [PATCH] Add blog post for entity state color changes (#1578) Co-authored-by: Franck Nijhof --- blog/2022-12-07-entity-color-changes.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 blog/2022-12-07-entity-color-changes.md diff --git a/blog/2022-12-07-entity-color-changes.md b/blog/2022-12-07-entity-color-changes.md new file mode 100644 index 00000000..df6cf3e0 --- /dev/null +++ b/blog/2022-12-07-entity-color-changes.md @@ -0,0 +1,15 @@ +--- +author: Paul Bottein +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. + +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. + +:::caution +As we only officially support the `primary-color` and `accent-color` properties for themes, some colors can be added or removed between releases. +::: + +More details about theme configuration can be found in the [Home Assistant documentation](https://www.home-assistant.io/integrations/frontend/#defining-themes).