Package com.vaadin.flow.theme
Annotation Interface NoTheme
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
@Documented
@Deprecated(since="25.1")
public @interface NoTheme
Deprecated.
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
Themeannotation is found on the AppShellConfigurator, the theme defined by it is used. - If a
NoThemeannotation is found on the AppShellConfigurator, theming is disabled. - If the
com.vaadin.flow.theme.lumo.Lumoclass 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:
Theme, since the theming system has been reworked and no theme is applied to the application unless it is explicitly requested. OmittingThemehas the same effect as using this annotation, so it can simply be removed. Styles are now loaded withStyleSheetfrom public static resources locations orCssImportfrom asrc/main/frontend/folder, together with mechanisms native to HTML, CSS and React (e.g.@import url("morestyles.css")in CSS).