Package com.vaadin.flow.theme.lumo
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.0-beta1") @NpmPackage(value="@vaadin/vaadin-lumo-styles",version="25.0.0-beta1")
@CssImport("@vaadin/vaadin-lumo-styles/lumo.css")
public class Lumo
extends Object
implements AbstractTheme
Lumo component theme class implementation.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe url for the base component implementation.getHtmlAttributes(String variant) Gets the attributes that should be set on the<html>element when the Theme variant is applied.The url for the components themed version implementation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.theme.AbstractTheme
getHeaderInlineContents, translateUrl
-
Field Details
-
LIGHT
- See Also:
-
DARK
- See Also:
-
STYLESHEET
The path to the Lumo stylesheet. Can be used as argument to aStyleSheeton anAppShellConfiguratorclass to apply the Lumo theme to an application.- See Also:
-
UTILITY_STYLESHEET
The path to the stylesheet that contains the Lumo utility classes. Can be used as argument to aStyleSheeton anAppShellConfiguratorclass to apply the utility classes to an application.- See Also:
-
-
Constructor Details
-
Lumo
public Lumo()
-
-
Method Details
-
getBaseUrl
Description copied from interface:AbstractThemeThe url for the base component implementation.e.g. src/
- Specified by:
getBaseUrlin interfaceAbstractTheme- Returns:
- the base component path
-
getThemeUrl
Description copied from interface:AbstractThemeThe url for the components themed version implementation.e.g. theme/lumo/
- Specified by:
getThemeUrlin interfaceAbstractTheme- Returns:
- the themed component path
-
getHtmlAttributes
Description copied from interface:AbstractThemeGets the attributes that should be set on the<html>element when the Theme variant is applied.- Specified by:
getHtmlAttributesin interfaceAbstractTheme- Parameters:
variant- the variant defined in theThemeannotation, notnull- 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.
-