Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save charithmadhuranga/5ee932b49631b9f5172c2d2383e631d8 to your computer and use it in GitHub Desktop.

Select an option

Save charithmadhuranga/5ee932b49631b9f5172c2d2383e631d8 to your computer and use it in GitHub Desktop.
Use custom fonts in Home Assistant
# /config/configuration.yaml
...
lovelace:
mode: yaml
resources:
- url: /local/myfont.css
type: css
...
frontend:
themes:
change_font:
paper-font-body1_-_font-family: myfont
<!--
/config/www/myfont.css
Also need /config/www/myfont.ttf
or whatever file format it is, could be several.
src: may need to be adjusted with a format() function or so - check the font docs.
-->
@font-face {
font-family: "myfont";
src: url("/local/myfont.ttf");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment