Set variable value
variable.set(value, options?)
Set the value of the selected variable.
Syntax
Parameters
Resetting a mode-specific value
To reset a mode-specific value back to the default base value, pass null
when calling variable.set()
along with the mode you want to reset. Variables
without a mode-specific value won’t be affected.
Variable values by type
Color
Size
Number & Percentage
FontFamily
Returns
Promise<null
>
A Promise that resolves to null