Version 1, Update 91
With the launch of typography variables, the plugin API now supports getting and setting bound variables for text properties like font family, font style, font weight, and more. Please refer to the Working with Variables guide for how to use the variables API to control typography in Figma files.
New:
node.getRangeBoundVariable
andnode.setRangeBoundVariable
for getting and setting bound variables on text ranges.
Updated:
node.boundVariables
now includes bindable text fields.node.setBoundVariable
can bind variables to text fields for the full text range in a text node.- The above changes also apply to
TextStyle
. - Styled text segments from
node.getStyledTextSegments
now include bound variables for text fields to let you easily identify bindings across segments of text in a text node.