Skip to content

Feature Tab Look

tempus2016 edited this page Nov 21, 2026 · 2 revisions

Tab look: pictures, icon animations, fonts, haptics

Small per-tab touches.

Pictures instead of icons (picture)

tabs:
  - name: Alex
    picture: person.alex          # the person's photo (entity_picture)
    card: { ... }
  - name: Garden
    picture: /local/garden.jpg    # or any image URL
    card: { ... }
  • An entity id uses that entity's entity_picture (people, media players, some cameras); a path or URL is used as is. Templates work too.
  • The picture is shown round, where the icon would be, and works with a progress ring.
  • If the entity has no picture, the tab's icon is shown instead.

Accent from the picture (picture_accent)

With picture_accent: true (top level), each tab with a picture takes its accent colour from it: a garden photo gives a green tab, a sunset an orange one. The accent colours the open tab's label and the indicator, as a tab's own accent does.

type: custom:tabdeck-card
picture_accent: true
tabs:
  - name: Garden
    picture: /local/garden.jpg
    card: { ... }
  - name: Alex
    picture: person.alex
    card: { ... }
  • The colour is the picture's main colourful hue (greys, black and white are skipped), not a muddy average. Each picture is read once, small, in the background, and remembered while the page is open; until then the tab uses the theme accent.
  • A tab's own accent wins.
  • Pictures from another site can only be read if that site allows it (CORS). If not, the tab keeps the theme accent. Pictures served by Home Assistant (/local/…, people's photos) always work.
  • A very pale or very dark picture can give an accent that's hard to read on your theme. Set that tab's accent yourself.
  • In the visual editor: Accent colour from each tab's picture.

Icon animations (icon_animation)

spin, pulse, bounce, shake or beat. Make it a template to animate only sometimes. A fan that spins while it's on:

  - name: Fan
    icon: mdi:fan
    icon_animation: "{{ 'spin' if is_state('fan.bedroom', 'on') else '' }}"

Animations stop under Reduce motion.

Fonts per tab (font_size, font_weight, font_family)

  - name: Alarm
    font_weight: 700
    font_size: 16          # numbers are px
    font_family: "Georgia, serif"

For every tab at once, use --tabdeck-tab-font-* in styles or tab_defaults. density changes the overall size of the bar.

Haptic feedback (haptic)

type: custom:tabdeck-card
haptic: light      # selection | light | medium | heavy | success | warning | failure (true = selection)

The Home Assistant companion app vibrates when the person switches tabs (taps, swipes, arrows, shortcuts). Automatic switches such as rotation, idle return and remote control don't vibrate. Browsers without the app ignore it.

Clone this wiki locally