starting a post here, as it will be very prominent after release, that the changes in the Frontend in 2025.5 affect many users dashboards
at this time, 1 day in beta 2025.5 these changes not only have their impact in core components, many custom components will have to be updated to, to do away with paper-xx
variables, and start supporting the new system.
In my own config, that is at least the case for
Completely broken:
- Kiosk mode
- custom-sidebar
- tabbed-card
Impacted
- card-mod and mostly card-mod theming
- probably also template-entity-row and fold-entity-row (not tested completely yet)
- tabbed-card
I am hoping we can join here and post our findings, and preferably some solutions
simply replacing paper-tab
with sl-tab
in the card-mod themes did bring back the modified tabs, with 1 exception:
can no longer set the color of the active icon…
/* Set the color of the currently selected tab.
Set size of the currently selected tab icon*/
sl-tab[aria-selected=true] {
color: red;
border: 1px solid var(--primary-color);
background: linear-gradient(180deg, var(--primary-color) 0%, var(--card-background-color) 50%);
--mdc-icon-size: {{states('input_number.active_icon_size')|int(24)}}px;
display: flex;
}
Note the display: flex
is required now to center the enlarged active icon
the app-header-selection-bar-color: red
can now be set in the themes directly, and no longer requires a card-mod modification, which is nice.
however, as dev in Discord suggested I use
--ha-tab-active-text-color: red
--ha-tab-indicator-color: red
I can not make those happen. not in themes, not in card-mod themes. So, maybe there is a bug in it too, cant say for sure yet.
Sidebar menu is completely unmodified now, and no matter what I do, I cant make it happen… yet.
So, please join in and make this a community effort …
Individual authors will update their own repos, and maybe it is a good idea to consolidate those here too, to have a direct link top those repos
Edit
these are the mentioned changes regarding the theme variables and
New tokens
--ha-font-family-body
--ha-font-family-heading
--ha-font-family-code
--ha-font-family-longform
--ha-font-size-scale
--ha-font-size-2xs
--ha-font-size-xs
--ha-font-size-s
--ha-font-size-m
--ha-font-size-l
--ha-font-size-xl
--ha-font-size-2xl
--ha-font-size-3xl
--ha-font-size-4xl
--ha-font-weight-light
--ha-font-weight-normal
--ha-font-weight-medium
--ha-font-weight-bold
--ha-font-weight-body
--ha-font-weight-heading
--ha-font-weight-action
--ha-line-height-condensed
--ha-line-height-normal
--ha-line-height-expanded
--ha-font-smoothing
CSS
Removed tokens
--paper-font-common-nowrap_-_text-overflow
--paper-font-display1_-_letter-spacing
--paper-font-headline_-_letter-spacing
--paper-font-common-base_-_font-family
--paper-font-common-base_-_-webkit-font-smoothing
--paper-font-common-code_-_font-family
--paper-font-common-code_-_-webkit-font-smoothing
--paper-font-common-nowrap_-_white-space
--paper-font-common-nowrap_-_overflow
--paper-font-title_-_overflow
--paper-font-title_-_text-overflow
--paper-font-title_-_text-overflow
--paper-font-title_-_white-space
--paper-item-body-two-line-min-height
--paper-time-input-justify-content
--paper-item-body-three-line-min-height
--paper-item-icon-width
--paper-card-header-color
--paper-dialog-color
--paper-font-headline_-_white-space
--paper-font-headline_-_overflow
--paper-font-headline_-_text-overflow
--paper-font-subhead_-_white-space
--paper-font-subhead_-_overflow
--paper-font-subhead_-_text-overflow
--paper-item-icon-active-color
--paper-listbox-background-color
CSS
Migrated tokens
--code-font-family → --ha-font-family-code
--paper-font-title_-_-webkit-font-smoothing → --ha-font-smoothing
--paper-font-headline_-_-webkit-font-smoothing → --ha-font-smoothing
--paper-font-display1_-_-webkit-font-smoothing → --ha-font-smoothing
--paper-font-subhead_-_-webkit-font-smoothing → --ha-font-smoothing
--paper-font-body1_-_-webkit-font-smoothing → --ha-font-smoothing
--paper-font-display1_-_font-family → --ha-font-family-body
--paper-font-display1_-_font-size → --ha-font-size-4xl
--paper-font-display1_-_font-weight → --ha-font-weight-normal
--paper-font-display1_-_line-height → --ha-line-height-condensed
--paper-font-headline_-_font-family → --ha-font-family-body
--paper-font-headline_-_font-size → --ha-font-size-2xl
--paper-font-headline_-_font-weight → --ha-font-weight-normal
--paper-font-headline_-_line-height → --ha-line-height-condensed
--paper-font-title_-_font-family → --ha-font-family-body
--paper-font-title_-_font-size → --ha-font-size-xl
--paper-font-title_-_font-weight → --ha-font-weight-medium
--paper-font-title_-_line-height → --ha-line-height-normal
--paper-font-subhead_-_font-family → --ha-font-family-body
--paper-font-subhead_-_font-size → --ha-font-size-l
--paper-font-subhead_-_font-weight → --ha-font-weight-normal
--paper-font-subhead_-_line-height → --ha-line-height-normal
--paper-font-body1_-_font-family → --ha-font-family-body
--paper-font-body1_-_font-size → --ha-font-size-m
--paper-font-body1_-_font-weight → --ha-font-weight-normal
--paper-font-body1_-_line-height → --ha-line-height-normal
--paper-item-icon-color → --state-icon-color