HA frontend conformance pass , Groupe A
One-commit rollback target. Zero visual risk: every change carries the previous exact value as a fallback so themes that don't define the HA tokens keep the same render.
A.1 , Font-weights → HA tokens (21 occurrences)
font-weight: 400→var(--ha-font-weight-normal, 400)font-weight: 500→var(--ha-font-weight-medium, 500)font-weight: 700→var(--ha-font-weight-bold, 700)
(600 + 800 stay hardcoded , HA doesn't expose tokens at those weights)
A.2 , Tailwind semantic colours → HA semantic (8 occurrences)
#22c55e→var(--success-color, #22c55e)on.dash-stat-refined-up,.dash-stat-delta-up,.dash-battery-flow-charge ha-icon#ef4444→var(--error-color, #ef4444)on the matching down / discharge selectors
The up / down semantics now follow the active HA theme's success / error palette.
A.3 , Font-family
Already 100 % var(--ha-font-family-body, …) everywhere. Nothing to migrate.
A.4 , Dead CSS cleanup
The entire .dash-radial-corner-* rule block (the old four-corner pill legend pre-beta.34) is removed. ~40 lines of dead CSS gone, the classes haven't been rendered since the chip strip + clock overlay replaced them.
Rollback
git revert 3462e3d if anything reads differently in a custom theme.