Set type on a text layer
figma_set_text_styleSet typography on a Figma text layer: font, size, line height, letter spacing, alignment, and color. Changes only the properties you specify, leaving others untouched.
Instructions
Font, size, line height, letter spacing, alignment and colour, on a TEXT layer. Only what you name is changed. Prefer figma_apply_style where the file has a text style for it — a named style survives a redesign and a hard-coded 14px does not.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| align | No | ||
| color | No | Hex colour. | |
| nodeId | Yes | Figma node id, like "21:10314". Omit to use whatever is selected on the canvas. | |
| fontSize | No | ||
| fontStyle | No | Weight or style, like "Semi Bold". | |
| autoResize | No | ||
| fontFamily | No | ||
| lineHeight | No | In pixels. | |
| letterSpacing | No | In pixels. |