Enum Class VaadinCssProps

java.lang.Object
java.lang.Enum<VaadinCssProps>
org.vaadin.firitin.util.style.VaadinCssProps
All Implemented Interfaces:
Serializable, Comparable<VaadinCssProps>, Constable, CssPropertyEnum

public enum VaadinCssProps extends Enum<VaadinCssProps> implements 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:
  • Enum Constant Details

  • Method Details

    • values

      public static VaadinCssProps[] 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

      public static VaadinCssProps valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • cssPrefix

      public String cssPrefix()
      Description copied from interface: CssPropertyEnum
      Returns the CSS variable prefix, e.g. "--aura-".
      Specified by:
      cssPrefix in interface CssPropertyEnum