Skip to content

Commit 03ea531

Browse files
authored
Refine theme settings for light and dark modes
Updated theme settings for light and dark modes with clearer descriptions and added behavior for dark mode overrides.
1 parent c19ccb4 commit 03ea531

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/_integrations/frontend.markdown

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,12 @@ There are two themes-related actions:
165165

166166
| Data attribute | Description |
167167
| -------------- | --------------------------------------------------------------------------------------------------- |
168-
| `name` | Name of the theme to set, `default` for the default theme or `none` to restore to the default. |
169-
| `mode` | If the theme should be applied in light or dark mode `light` or `dark` (Optional, default `light`). |
168+
| `name` | Name of the theme to be used by default. Set `default` to use the default _Home Assistant_ theme. If omitted, the previous setting will be retained. |
169+
| `name_dark` | Name of the theme to be used by default for dark mode. Set `default` to use the default _Home Assistant_ theme, or `none` to delete the dark mode override. If omitted, the previous setting will be retained. |
170170

171-
If no dark mode backend theme is set, the light mode theme will also be used in dark mode.
172-
The backend theme settings will be saved and restored on a restart of Home Assistant.
171+
If the dark mode has never been set, or has been erased by setting `name_dark` to `none`, the light mode theme will also be used in dark mode.
172+
173+
The theme settings will be saved and restored on a restart of Home Assistant.
173174

174175
### Manual theme selection
175176

0 commit comments

Comments
 (0)