Skip to content

Home Assistant: Eigener Font seit 2025.5

Wer sich wundert, warum seit HA 2025.5 eigene Schriftarten im Frontend nicht mehr angezeigt werden, hat vermutlich – so wie ich ;) – die entsprechenden Backward-incompatible changes nicht gelesen…

Esse est percipi
Jul 27, 2025 · 1 min read · 1 read

er sich wundert, warum seit HA 2025.5 eigene Schriftarten im Frontend nicht mehr angezeigt werden, hat vermutlich – so wie ich ;) – die entsprechenden Backward-incompatible changes nicht gelesen.

LR,kS: (Lange Rede, kurzer Sinn): Seit HA 2025.5 sind einige CSS-Variablen weggefallen und durch neue ersetzt worden. Dieses Snippet funktioniert deshalb nicht mehr:

primary-font-family: 'MeinFont' paper-font-common-base_-_font-family: "var(--primary-font-family)" paper-font-common-code_-_font-family: "var(--primary-font-family)" paper-font-body1_-_font-family: "var(--primary-font-family)" paper-font-subhead_-_font-family: "var(--primary-font-family)" paper-font-headline_-_font-family: "var(--primary-font-family)" paper-font-caption_-_font-family: "var(--primary-font-family)" paper-font-title_-_font-family: "var(--primary-font-family)"

Stattdessen muss man in den gewünschten Themes jetzt folgende Variablen verwenden:

primary-font-family: 'MeinFont' ha-font-family-body: "var(--primary-font-family)" ha-font-family-heading: "var(--primary-font-family)" ha-font-family-code: "var(--primary-font-family)" ha-font-family-longform: "var(--primary-font-family)"

Did you enjoy this article?

Recommend it — Standard Reader surfaces well-loved writing to more readers across the network.

Across the AtmosphereDiscussions