The versatile custom Swiss Army Knife card for Home Assistant allows you to create your unique visualization using several graphical tools, styling options and animations.
234
stars
19
forks
source link
Add support for theming, palettes and swatches #218
This issue collects a lot of the existing issues that reference card theming, and ideas around swatches and palettes.
205
176
80
The result of the possibility to load a theme on a card can be seen below: A magenta M3 theme, where the rest of the cards is using the Tealblue M3 theme:
And a combination with palette that overwrites some theme colors (see yellow):
Additional background:
Specifying a specific theme for a card makes it possible to have specific colors for that card only. It is a bit heavy on the resource side of course (memory).
Specifying a palette (a collection of swatches with light/dark mode support) makes it possible to include a specific set of colors to be used in the card, independent of the used theme. So instead of changing the theme or defining hard-coded colors, one can 'extend' the theme with other colors!
A color swatch is a small set of colors, defined for both light/dark modes.
The definition is identical to themes, hence looks like very small themes.
The Problem To Be Solved
This issue collects a lot of the existing issues that reference card theming, and ideas around swatches and palettes.
205
176
80
The result of the possibility to load a theme on a card can be seen below: A magenta M3 theme, where the rest of the cards is using the Tealblue M3 theme:
And a combination with palette that overwrites some theme colors (see yellow):
Additional background:
Specifying a specific theme for a card makes it possible to have specific colors for that card only. It is a bit heavy on the resource side of course (memory).
Specifying a palette (a collection of swatches with light/dark mode support) makes it possible to include a specific set of colors to be used in the card, independent of the used theme. So instead of changing the theme or defining hard-coded colors, one can 'extend' the theme with other colors!
A color swatch is a small set of colors, defined for both light/dark modes.
The definition is identical to themes, hence looks like very small themes.
Related Issues (if any)
(Optional): Suggested Solution
Add support on two levels:
Card-level support for themes:
Card-level support for palettes:
Toolset-level support for palettes (Note: not working if toolset is a template!!!!!!!!!!!!!!!!):
(Optional): Alternative Solutions