Skip to main content

VariableResolvedDataType

type VariableResolvedDataType =
"BOOLEAN" |
"COLOR" |
"EASING" |
"FLOAT" |
"STRING" |
"TIMING"

The list of resolved Variable types that Figma currently supports.

  • "BOOLEAN" variables can be assigned to true or false
  • "COLOR" variables can be assigned to RGB values
  • "EASING" variables can be assigned to MotionEasing values
  • "FLOAT" variables can be assigned to number values
  • "STRING" variables can be assigned to string values
  • "TIMING" variables can be assigned to number values representing seconds

Since a variable can be assigned to a VariableAlias for any given mode, this type refers to the type of the fully resolved value (after following all aliases).