Skip to content

v0.1.1 - apply font inside custom card shadow roots

Choose a tag to compare

@yshaish1 yshaish1 released this 28 Apr 12:31

Fix

v0.1.0 only walked Home Assistant's outer shells (home-assistant, home-assistant-main, ha-panel-lovelace, hui-root), so the font landed on the dashboard heading and section titles but custom cards (Mushroom chips, Bubble Card, room buttons, sliders, media-player rows) kept their default font.

v0.1.1 recursively walks the entire DOM, collects every ShadowRoot, and adopts one shared CSSStyleSheet into each. The MutationObserver re-walks on each animation frame, so newly-mounted card shadow roots pick up the font without flicker.

Update from HACS

HACS -> Frontend -> Google Fonts -> three-dot menu -> Redownload -> pick v0.1.1 -> hard-refresh the dashboard tab.