Set Text Style
text_set_styleSet typography properties on Figma text nodes: font, size, weight, line height, letter spacing, decoration, alignment, and case.
Instructions
Set any combination of typography properties (font, size, weight, spacing, decoration, …) on a text node.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the text node to modify | |
| fontName | No | Font family and style | |
| fontSize | No | Font size | |
| nodeName | Yes | The node's current exact name, passed back verbatim from `node_info`. | |
| textCase | No | Case transformation on the text | |
| lineHeight | No | Line height settings | |
| letterSpacing | No | Letter spacing settings | |
| textDecoration | No | Text decoration | |
| paragraphIndent | No | Paragraph indent in pixels | |
| paragraphSpacing | No | Paragraph spacing in pixels | |
| textAlignVertical | No | Vertical text alignment | |
| textAlignHorizontal | No | Horizontal text alignment |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the modified node | |
| error | No | ||
| success | No | Whether style was set successfully |