You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/frontend.markdown
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,3 +17,22 @@ This offers the official frontend to control Home Assistant.
17
17
# Example configuration.yaml entry
18
18
frontend:
19
19
```
20
+
21
+
#### Themes
22
+
Starting with version 0.49 you can define themes:
23
+
24
+
Example:
25
+
```yaml
26
+
frontend:
27
+
themes:
28
+
happy:
29
+
primary-color: pink
30
+
sad:
31
+
primary-color: blue
32
+
```
33
+
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)
35
+
36
+
There are 2 themes-related services:
37
+
- `frontend.reload_themes`- reloads theme configuration from yaml.
0 commit comments