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.1.0-alpha1") @NpmPackage(value="@vaadin/vaadin-lumo-styles",version="25.1.0-alpha1")
@CssImport("@vaadin/vaadin-lumo-styles/lumo.css")
public class Lumo
extends Object
implements AbstractTheme
Lumo component theme class implementation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe path to the stylesheet that contains the Lumo compact preset.static final Stringstatic final Stringstatic final StringThe path to the Lumo stylesheet.static final StringThe path to the stylesheet that contains the Lumo utility classes. -
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:
-
COMPACT_STYLESHEET
The path to the stylesheet that contains the Lumo compact preset. Can be used as argument to aStyleSheeton anAppShellConfiguratorclass 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
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.
-