Update theme docs

This commit is contained in:
Paulus Schoutsen 2018-08-10 14:10:45 +02:00 committed by GitHub
parent 47accac6d7
commit 355d351a34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.