-
Notifications
You must be signed in to change notification settings - Fork 0
Feature Theming
tempus2016 edited this page Jun 24, 2026
·
1 revision
Tabdeck reads several CSS custom properties and lets you set them (and any other CSS variables) directly from the card config via styles — no card-mod required.
Config key: styles (top-level map of CSS property → value)
type: custom:tabdeck-card
styles:
--tabdeck-accent: "#9c27b0"
--tabdeck-tab-height: 64px
--tabdeck-tab-font-size: 16px
tabs: [ ... ]
| Variable | Affects | Default |
|---|---|---|
--tabdeck-accent |
Indicator / selected tab colour | --primary-color |
--tabdeck-tab-height |
Tab bar height | 48px |
--tabdeck-tab-font-size |
Tab label size | 14px |
The card also honours standard HA theme variables (--primary-color, --divider-color, --card-background-color, --secondary-text-color, …).
- Each entry is applied as a custom property (or any CSS property) on the card host.
- Entries are reconciled on config change, so removing a key clears it.
- Per-tab
accentstill overrides--tabdeck-accentfor the selected tab.
stylesis YAML/advanced — it isn't shown in the visual editor, but it's fully supported and round-trips through the code editor.
Concepts
Features