A milky glass theme for Home Assistant
Add the following code to your configuration.yaml
file (reboot required).
frontend:
... # your configuration.
themes: !include_dir_merge_named themes
... # your configuration.
Right now, this theme requires you to add the Comfortaa
font as a resource to your lovelace configuration:
resources:
- url: https://fonts.googleapis.com/css?family=Comfortaa&display=swap
type: css
kibibit
.kibibit
theme.Install
.frontend.reload_themes
service.This theme comes with a background by default, but you can change it to whatever you like.
You can use either a url or a local file.
/config/www
to make it a public asset accessible from the frontend (/config/www/bg-kibibit-theme.png
).access the theme file kibibit.yaml
and change the following line:
background-image: "center / cover no-repeat fixed url('https://thatkookooguy.github.io/https-assets/bg-kibibit-theme.png')"
to include your url, or a local asset by mapping /config/www/
to /local/
(/local/bg-kibibit-theme.png
)
Refresh home assistant after that.
backend-selected
themeIn order to have this theme set automatically as the backend selected default, add the following automation to your home assistant:
- alias: Set Default Theme
description: ''
trigger:
- event: start
platform: homeassistant
condition: []
action:
- data:
name: kibibit
service: frontend.set_theme
Thanks goes to these wonderful people (emoji key):
Neil Kalman 💻 📖 🎨 🚇 🚧 |
This project follows the all-contributors specification. Contributions of any kind welcome!
This theme started based on this post Henrik's reddit post.
Learned a lot about lovelace themes from the lovelace ios themes repo! Check their themes out!