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.getRangeBoundVariableandnode.setRangeBoundVariablefor getting and setting bound variables on text ranges.
Updated:
node.boundVariablesnow includes bindable text fields.node.setBoundVariablecan 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.getStyledTextSegmentsnow include bound variables for text fields to let you easily identify bindings across segments of text in a text node.