Enum Class ThemeTokens.Kind

java.lang.Object
java.lang.Enum<ThemeTokens.Kind>
com.iizix.prop.ThemeTokens.Kind
All Implemented Interfaces:
Serializable, Comparable<ThemeTokens.Kind>, Constable
Enclosing class:
ThemeTokens

public static enum ThemeTokens.Kind extends Enum<ThemeTokens.Kind>
The kind of value a token holds.
Author:
Christopher Mindus
  • Enum Constant Details

    • LENGTH

      public static final ThemeTokens.Kind LENGTH
      A CSS length: 6px, .5rem, 0.
    • NUMBER

      public static final ThemeTokens.Kind NUMBER
      A number, or a length: the line height.
    • TIME

      public static final ThemeTokens.Kind TIME
      A CSS time: .16s, 200ms.
    • FONTS

      public static final ThemeTokens.Kind FONTS
      A font family list: system-ui,"Segoe UI",sans-serif.
    • SHADOWS

      public static final ThemeTokens.Kind SHADOWS
      A box-shadow list, or none.
    • COLOR

      public static final ThemeTokens.Kind COLOR
      A colour: #e0e0e0, rgba(0,0,0,.5), var(--iz-bg2).
  • Field Details

    • description

      public final String description
      What the kind is called in a message.
  • Method Details

    • values

      public static ThemeTokens.Kind[] 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 ThemeTokens.Kind 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