update_text_style
Update an existing text style by its ID, modifying font, size, line height, or letter spacing without creating a duplicate. Keeps shared styles in sync with code.
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 |