Set Text Style
text_set_styleApply typography settings—font, size, weight, spacing, decoration—to a text node in Figma to define its style.
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 | |
| nodeName | Yes | Name of the node to verify against | |
| fontSize | No | Font size | |
| fontName | No | Font family and style | |
| lineHeight | No | Line height settings | |
| letterSpacing | No | Letter spacing settings | |
| paragraphIndent | No | Paragraph indent in pixels | |
| paragraphSpacing | No | Paragraph spacing in pixels | |
| textCase | No | Case transformation on the text | |
| textDecoration | No | Text decoration |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether style was set successfully | |
| name | No | Name of the modified node |