Enum Class VaadinCssProps
- All Implemented Interfaces:
Serializable, Comparable<VaadinCssProps>, Constable, CssPropertyEnum
Enumeration of shared Vaadin CSS properties (base style properties)
with handy helper methods to define them in a component scope or
globally and to use the property as css variable.
These properties are shared between themes (Aura, Lumo) and provide a common set of design tokens for colors, spacing, sizing, and other styles.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the CSS variable prefix, e.g.static VaadinCssPropsReturns the enum constant of this class with the specified name.static VaadinCssProps[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface CssPropertyEnum
define, define, getCssName, name, var
-
Enum Constant Details
-
TEXT_COLOR
-
TEXT_COLOR_SECONDARY
-
TEXT_COLOR_DISABLED
-
BORDER_COLOR
-
BORDER_COLOR_SECONDARY
-
BACKGROUND_COLOR
-
BACKGROUND_CONTAINER
-
BACKGROUND_CONTAINER_STRONG
-
GAP_XS
-
GAP_S
-
GAP_M
-
GAP_L
-
GAP_XL
-
PADDING_XS
-
PADDING_S
-
PADDING_M
-
PADDING_L
-
PADDING_XL
-
PADDING_INLINE_CONTAINER
-
PADDING_BLOCK_CONTAINER
-
RADIUS_S
-
RADIUS_M
-
RADIUS_L
-
FOCUS_RING_COLOR
-
FOCUS_RING_WIDTH
-
CLICKABLE_CURSOR
-
DISABLED_CURSOR
-
ICON_SIZE
-
ICON_VISUAL_SIZE
-
ICON_STROKE_WIDTH
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
cssPrefix
Description copied from interface:CssPropertyEnumReturns the CSS variable prefix, e.g."--aura-".- Specified by:
cssPrefixin interfaceCssPropertyEnum
-