You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lumo class should be deprecated and just load stylesheets in V25 #21605
As of V25, Material is removed, and the Lumo styles for components are no longer loaded as part of the component dependencies but as regular stylesheets loaded separately from the components themselves: @CssImport("@vaadin/vaadin-lumo-styles/lumo.css") or, in css, @import("@vaadin/vaadin-lumo-styles/lumo.css").
The @Theme annotation is deprecated but retained for backward compatibility, but only as a shorthand for loading the Lumo stylesheet, and, if specified, the application theme. The Lumo class itself should be similarly deprecated but retained, as it only serves a legacy purpose.
Describe the solution you'd like
@Theme(themeClass=Lumo.class) should just do a @CssImport("@vaadin/vaadin-lumo-styles/lumo.css")
@Theme("mytheme") should do the import and then load the specified folder's styles.css
@Theme(themeClass=Lumo.class, variant=Lumo.DARK) should do the import and apply the theme="dark" to the page (as it does today).
changed the title [-]Lumo should just load stylesheets in V25[/-][+]Lumo class should be deprecated and just load stylesheets in V25[/+]on Jul 22, 2025
Activity
[-]@Theme should just load stylesheets in V25[/-][+]Lumo should just load stylesheets in V25[/+][-]Lumo should just load stylesheets in V25[/-][+]Lumo class should be deprecated and just load stylesheets in V25[/+]fix: import Lumo styles
fix: import Lumo styles (#135)
fix: Theme classes that are not set as theme do not add css
fix: Theme classes that are not set as theme do not add css (#22052)
vaadin-bot commentedon Aug 22, 2025
This ticket/PR has been released with Vaadin 25.0.0-alpha7.
fix: Theme classes that are not set as theme do not add css (#22052)