Token types

TokenType is an enum used to specify the type of design token for various purposes.

Available from: 2.0.0

Import


                                                        
                                                        
                                                            import { TokenType } from "@supernovaio/sdk"
                                                        
                                                            

Enum Values

Here are its possible values:

  • color: Represents color tokens.
  • typography: Represents typography tokens.
  • dimension: Represents dimension tokens.
  • size: Represents size tokens.
  • space: Represents spacing tokens.
  • opacity: Represents opacity tokens.
  • fontSize: Represents font size tokens.
  • lineHeight: Represents line height tokens.
  • letterSpacing: Represents letter spacing tokens.
  • paragraphSpacing: Represents paragraph spacing tokens.
  • borderWidth: Represents border width tokens.
  • radius: Represents border radius tokens.
  • duration: Represents duration tokens.
  • zIndex: Represents z-index tokens.
  • shadow: Represents shadow tokens.
  • border: Represents border tokens.
  • gradient: Represents gradient tokens.
  • string: Represents string tokens.
  • productCopy: Represents product copy tokens.
  • fontFamily: Represents font family tokens.
  • fontWeight: Represents font weight tokens.
  • textCase: Represents text case tokens.
  • textDecoration: Represents text decoration tokens.
  • visibility: Represents visibility tokens.
  • blur: Represents blur effect tokens.

Each value in the enum represents a specific design token type and can be used to classify or identify the kind of design token in the system.