update_text_style
Update existing local text style properties to change fonts, size, spacing, and case; linked text nodes update automatically.
Instructions
Update properties of an existing local text style. Text nodes using the style update automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New style name | |
| styleId | Yes | ID of the text style (from get_styles or create_text_style) | |
| fontSize | No | Font size in pixels | |
| textCase | No | Text case | |
| fontStyle | No | Font style name as shown in Figma, e.g. "Regular", "Medium", "Semi Bold", "Bold". Takes precedence over fontWeight | |
| fontFamily | No | Font family (default: Inter, or the style's current family) | |
| fontWeight | No | Font weight (100-900), mapped to a font style name when fontStyle is not given | |
| lineHeight | No | Line height: number (pixels), "AUTO", or { unit: "PIXELS" | "PERCENT", value } | |
| description | No | Optional style description | |
| letterSpacing | No | Letter spacing: number (pixels) or { unit: "PIXELS" | "PERCENT", value } | |
| textDecoration | No | Text decoration | |
| paragraphSpacing | No | Paragraph spacing in pixels |