Interface CssPropertyEnum
- All Known Implementing Classes:
AuraProps, LumoProps, VaadinCssProps
public interface CssPropertyEnum
Interface for CSS property enums providing shared default methods
for working with CSS custom properties (design tokens).
Each implementing enum only needs to provide cssPrefix()
returning its CSS variable prefix (e.g. "--aura-").
-
Method Summary
Modifier and TypeMethodDescriptionReturns the CSS variable prefix, e.g.default voidDefines (sets) this CSS property on the given component's inline style.default voidDefines (sets) this CSS property globally on the document root element.default StringReturns the full CSS custom property name, e.g.name()Provided by the enum itself.default Stringvar()Returns avar(--...)reference to this CSS property.
-
Method Details
-
name
String name()Provided by the enum itself. -
cssPrefix
String cssPrefix()Returns the CSS variable prefix, e.g."--aura-". -
getCssName
Returns the full CSS custom property name, e.g."--aura-base-color". -
define
Defines (sets) this CSS property on the given component's inline style. -
define
Defines (sets) this CSS property globally on the document root element. -
var
Returns avar(--...)reference to this CSS property.
-