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="24.0.3") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="24.0.3") @NpmPackage(value="@vaadin/vaadin-lumo-styles",version="24.0.3")
@JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/vaadin-lumo-styles/color.js") @JsModule("@vaadin/vaadin-lumo-styles/typography.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") @JsModule("./lumo-includes.ts")
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.Return a list of contents to inline to the bootstrap header.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, wait
Methods inherited from interface com.vaadin.flow.theme.AbstractTheme
translateUrl
-
Field Details
-
LIGHT
- See Also:
-
DARK
- See Also:
-
-
Constructor Details
-
Lumo
public Lumo()
-
-
Method Details
-
getBaseUrl
Description copied from interface:AbstractTheme
The url for the base component implementation.e.g. src/
- Specified by:
getBaseUrl
in interfaceAbstractTheme
- Returns:
- the base component path
-
getThemeUrl
Description copied from interface:AbstractTheme
The url for the components themed version implementation.e.g. theme/lumo/
- Specified by:
getThemeUrl
in interfaceAbstractTheme
- Returns:
- the themed component path
-
getHeaderInlineContents
Description copied from interface:AbstractTheme
Return a list of contents to inline to the bootstrap header. The contents will be handled as no-wrap as is and will be inserted to the initial page head tag.This will usually be the any
<custom-style>
declarations, see CustomStyleFor importing theme files, use
JsModule
on the corresponding theme subclass.- Specified by:
getHeaderInlineContents
in interfaceAbstractTheme
- Returns:
- list of string content to inline or empty list if nothing to inline
-
getHtmlAttributes
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 interfaceAbstractTheme
- Parameters:
variant
- the variant defined in theTheme
annotation, 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.
-