update_text_style
Update a Figma text style by ID, modifying only the provided typography properties while leaving others unchanged. Sync shared styles with code without creating duplicates.
Instructions
Update an existing text style (typography token) by id. Any of name / fontName / fontSize / lineHeight / letterSpacing / description may be omitted to leave unchanged. A new font is loaded before assignment. lineHeight unit is AUTO / PIXELS / PERCENT (AUTO omits value); letterSpacing unit is PIXELS / PERCENT. Use this to keep a shared style in sync with code instead of creating a duplicate. Returns { ok, styleId, name }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| styleId | Yes | Text style id to update | |
| fontName | No | ||
| fontSize | No | ||
| lineHeight | No | ||
| description | No | ||
| letterSpacing | No |