Skip to content

Per card Theming

2.4.5 · Experimental

Card configuration

Using a specific Home Assistant theme for your Swiss Army Knife custom card is nothing more than specifying the name of the theme that is in the list of Home Assistant themes:

1
2
3
4
  - type: 'custom:swiss-army-knife-card'
    entities:
      <list of entities>
    theme: M3-D04-Magenta

You can only select themes that are known to Home Assistant

Loading a specific theme per card does cost resources

Every theme needs RAM memory. If you only need a few colors, consider using a color swatch!

Example views

The examples show the Magenta Material 3 theme applied to a single card between the other cards which use the Teal Blue Material 3 theme that is loaded by Home Assistant.

Example in light mode and alert 'off':

Swiss Army Knife Theme Example D06 D04 Light Off

Example in light mode and alert 'on':

Swiss Army Knife Theme Example D06 D04 Light On

Example in dark mode and alert 'off':

Swiss Army Knife Theme Example D06 D04 Dark Off

Example in dark mode and alert 'on':

Swiss Army Knife Theme Example D06 D04 Dark On