Class Lumo

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

@NpmPackage(value="@vaadin/vaadin-themable-mixin",version="24.3.11") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="24.3.11") @NpmPackage(value="@vaadin/vaadin-lumo-styles",version="24.3.11") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/vaadin-lumo-styles/color-global.js") @JsModule("@vaadin/vaadin-lumo-styles/typography-global.js") @JsModule("@vaadin/vaadin-lumo-styles/sizing.js") @JsModule("@vaadin/vaadin-lumo-styles/spacing.js") @JsModule("@vaadin/vaadin-lumo-styles/style.js") @JsModule("@vaadin/vaadin-lumo-styles/vaadin-iconset.js") public class Lumo extends Object implements AbstractTheme
Lumo component theme class implementation.
See Also:
  • Field Details

  • 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.