I created a new custom theme with a different font in it.
The theme is only selected for the dashboard and not the whole Home Assistant frontend. Somehow I can only see the font when the Dashboard is in editing mode like this:
When I exit the editing mode, the font goes back to default again. Why?
The theme is only applied to the dashboard, not to the whole Home Assistant. But if I apply the theme to the whole Home Assistant, then the font gets displayed correctly.
But I want the theme to only be visible for my dashboard. Any ideas?
If anyone is having this issue in 2025, I found that when using HA 2025.5.1 I had to use the Sections layout and add a new variable to my theme to make it work:
ha-font-family-body: "var(--primary-font-family)"
That way, my dashboards can finally override the font properly when a theme is set on them