Set variable value
variable.set(value, options?)
Set the value of the selected variable.
General Syntax
Parameters
-
value:
VariableValue | Variable
- The value for the variable. The value of the variable must match the variable type. (i.e A color variable must be a color value, and a size variable must be a size value)Color
Size
Number & Percentage
FontFamily
-
options:
{mode: VariableMode}
- An optional parameter to set the mode value of the variable.
Returns
Promise<null
>
A Promise that resolves to null