Annotation Interface NoTheme


Deprecated.
As of Vaadin 25, this annotation is deprecated together with Theme, since the theming system has been reworked and no theme is applied to the application unless it is explicitly requested. Omitting Theme has the same effect as using this annotation, so it can simply be removed. Styles are now loaded with StyleSheet from public static resources locations or CssImport from a src/main/frontend/ folder, together with mechanisms native to HTML, CSS and React (e.g. @import url("morestyles.css") in CSS).
A marker annotation to avoid applying any default theme to the application.

Flow uses the following logic to determine which theme to use for the application:

  • If a Theme annotation is found on the AppShellConfigurator, the theme defined by it is used.
  • If a NoTheme annotation is found on the AppShellConfigurator, theming is disabled.
  • If the com.vaadin.flow.theme.lumo.Lumo class is available in the classpath (which comes from the vaadin-lumo-theme project), then it is used as the default theme.

NoTheme annotation should be added to the AppShellConfigurator implementation.

Since:
1.0
See Also: