Class Lumo

java.lang.Object
com.vaadin.flow.theme.lumo.Lumo
All Implemented Interfaces:
AbstractTheme, Serializable

@NpmPackage(value="@vaadin/vaadin-themable-mixin",version="25.0.2") @NpmPackage(value="@vaadin/vaadin-lumo-styles",version="25.0.2") @CssImport("@vaadin/vaadin-lumo-styles/lumo.css") public class Lumo extends Object implements AbstractTheme
Lumo component theme class implementation.
See Also:
  • Field Details

    • LIGHT

      public static final String LIGHT
      See Also:
    • DARK

      public static final String DARK
      See Also:
    • STYLESHEET

      public static final String STYLESHEET
      The path to the Lumo stylesheet. Can be used as argument to a StyleSheet on an AppShellConfigurator class to apply the Lumo theme to an application.
      See Also:
    • UTILITY_STYLESHEET

      public static final String UTILITY_STYLESHEET
      The path to the stylesheet that contains the Lumo utility classes. Can be used as argument to a StyleSheet on an AppShellConfigurator class to apply the utility classes to an application.
      See Also:
    • COMPACT_STYLESHEET

      public static final String COMPACT_STYLESHEET
      The path to the stylesheet that contains the Lumo compact preset. Can be used as argument to a StyleSheet on an AppShellConfigurator class to apply the compact preset to an application.

      The compact preset needs to be loaded in addition to the main Lumo stylesheet referenced by STYLESHEET, not instead of it. Make sure to load the compact preset after the main Lumo stylesheet so that it can override the relevant CSS custom properties.

      See Also:
  • Constructor Details

    • Lumo

      public Lumo()
  • Method Details

    • getBaseUrl

      public String getBaseUrl()
      Description copied from interface: AbstractTheme
      The url for the base component implementation.

      e.g. src/

      Specified by:
      getBaseUrl in interface AbstractTheme
      Returns:
      the base component path
    • getThemeUrl

      public String getThemeUrl()
      Description copied from interface: AbstractTheme
      The url for the components themed version implementation.

      e.g. theme/lumo/

      Specified by:
      getThemeUrl in interface AbstractTheme
      Returns:
      the themed component path
    • getHtmlAttributes

      public Map<String,String> getHtmlAttributes(String variant)
      Description copied from interface: AbstractTheme
      Gets the attributes that should be set on the <html> element when the Theme variant is applied.
      Specified by:
      getHtmlAttributes in interface AbstractTheme
      Parameters:
      variant - the variant defined in the Theme annotation, not null
      Returns:
      a Map with the attributes (keys and values) that should be set in the body, or an empty Map if nothing should be set for the given variant.