Class Lumo

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

@NpmPackage(value="@vaadin/vaadin-themable-mixin",version="25.1.0-alpha6") @NpmPackage(value="@vaadin/vaadin-lumo-styles",version="25.1.0-alpha6") @CssImport("@vaadin/vaadin-lumo-styles/lumo.css") public class Lumo extends Object implements com.vaadin.flow.theme.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()
      Specified by:
      getBaseUrl in interface com.vaadin.flow.theme.AbstractTheme
    • getThemeUrl

      public String getThemeUrl()
      Specified by:
      getThemeUrl in interface com.vaadin.flow.theme.AbstractTheme
    • getHtmlAttributes

      public Map<String,String> getHtmlAttributes(String variant)
      Specified by:
      getHtmlAttributes in interface com.vaadin.flow.theme.AbstractTheme