Vaadin And Material Theme
Vaadin does officially support the Material theme, however it’s not actively developed and not recommended for new projects. The situation differs for Vaadin 14 and Vaadin 23+.
Vaadin 14
- The Custom Themes is the recommended way to develop your app with, but it’s not supported with Material theme: see Limitations.
- The Badge styling works properly.
Vaadin 23
- The Application Themes is the recommended way to develop your app with, but that’s not supported with the Material theme: Vaadin #15746.
- You can’t use the LumoUtility.java class since LumoUtility.java only works with custom themes: Vaadin #13716.
- For the same reason Badge doesn’t work: #4916.
- Vaadin add-ons are generally NOT tested with the Material theme: you can expect that they will not work with the Material theme properly. See this Issue #40 for more details.
Vaadin 24+
For new projects I would avoid using the Vaadin Material theme, for the following reasons:
- The Material Theme Documentation is placed in the ‘Legacy Styling Features’ category.
- It’s not actively maintained at the moment, and there are no plans to actively maintain the theme. Quite the opposite: if anything, it will most probably be deprecated sometime in the future and then removed completely.
- There are tentative plans to modify the Lumo theme so that it’s much easier to make Lumo app look material. This will be quite a big rework though, so don’t hold your breath on this.
Written on April 5, 2023