figma_set_text_style
Apply text styles to Figma text nodes using presets or custom values. Explicit properties override presets for precise typography control.
Instructions
Set text style with presets or custom values. Any explicit property overrides the preset.
Presets: display, heading-xl, heading-lg, heading-md, heading-sm, heading-xs, body-xl, body-lg, body-md, body-sm, body-xs, label-lg, label-md, label-sm, caption, overline
Examples: { nodeId, preset: "heading-xl" } { nodeId, preset: "body-md", fontWeight: 700 } { nodeId, fontSize: 48, fontWeight: 800 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| preset | No | Predefined text style preset. Explicit properties override preset values. | |
| fontSize | No | ||
| fillColor | No | Color as hex string "#RRGGBB" or object {r,g,b,a?} with 0-1 values | |
| fontFamily | No | ||
| fontWeight | No | ||
| lineHeight | No | ||
| letterSpacing | No | ||
| textDecoration | No | ||
| textAlignVertical | No | ||
| textAlignHorizontal | No |