themes_create_theme
Create a new Home Assistant theme with custom CSS variables, supporting light and dark modes. Optionally overwrite existing themes.
Instructions
Create a new theme file at themes/<name>.yaml with the given CSS variables.
The HA frontend stores themes as a dict keyed by theme name. Standard variables
include primary-color, accent-color, text-primary-color, etc.
For dark/light variants use modes: {"name": {"modes": {"light": {...}, "dark": {...}}}}.
Set overwrite=True to replace an existing theme. By default reload_themes is called.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| variables | Yes | ||
| overwrite | No | ||
| reload | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||