mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update theme docs
This commit is contained in:
parent
47accac6d7
commit
355d351a34
@ -53,12 +53,10 @@ frontend:
|
|||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
|
||||||
## {% linkable_title Themes %}
|
## {% linkable_title Defining Themes %}
|
||||||
|
|
||||||
Starting with version 0.49 you can define themes:
|
Starting with version 0.49 you can define themes:
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
frontend:
|
frontend:
|
||||||
@ -71,6 +69,10 @@ frontend:
|
|||||||
|
|
||||||
The example above defined two themes named `happy` and `sad`. For each theme you can set values for CSS variables. For a partial list of variables used by the main frontend see [ha-style.js](https://github.com/home-assistant/home-assistant-polymer/blob/master/src/resources/ha-style.js).
|
The example above defined two themes named `happy` and `sad`. For each theme you can set values for CSS variables. For a partial list of variables used by the main frontend see [ha-style.js](https://github.com/home-assistant/home-assistant-polymer/blob/master/src/resources/ha-style.js).
|
||||||
|
|
||||||
|
Check our [community forums](https://community.home-assistant.io/c/projects/themes) to find themes to use.
|
||||||
|
|
||||||
|
### {% linkable_title Theme automation %}
|
||||||
|
|
||||||
There are 2 themes-related services:
|
There are 2 themes-related services:
|
||||||
|
|
||||||
- `frontend.reload_themes`: reloads theme configuration from your `configuration.yaml` file.
|
- `frontend.reload_themes`: reloads theme configuration from your `configuration.yaml` file.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user