Skip to content

Commit 5614baa

Browse files
committed
Minor updates
1 parent 053e658 commit 5614baa

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/_components/frontend.markdown

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ This offers the official frontend to control Home Assistant.
1818
frontend:
1919
```
2020
21-
#### Themes
21+
### {% linkable_title Themes %}
22+
2223
Starting with version 0.49 you can define themes:
2324
2425
Example:
26+
2527
```yaml
28+
# Example configuration.yaml entry
2629
frontend:
2730
themes:
2831
happy:
@@ -31,13 +34,15 @@ frontend:
3134
primary-color: blue
3235
```
3336
34-
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.html](https://github.com/home-assistant/home-assistant-polymer/blob/master/src/resources/ha-style.html)
37+
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.html](https://github.com/home-assistant/home-assistant-polymer/blob/master/src/resources/ha-style.html).
3538

3639
There are 2 themes-related services:
37-
- `frontend.reload_themes` - reloads theme configuration from yaml.
38-
- `frontend.set_theme(name)` - sets backend-preferred theme name.
40+
41+
- `frontend.reload_themes`: reloads theme configuration from your `configuration.yaml` file.
42+
- `frontend.set_theme(name)`: sets backend-preferred theme name.
3943

4044
Example in automation:
45+
4146
```yaml
4247
automation:
4348
- alias: 'Set theme at startup'

0 commit comments

Comments
 (0)