create_text_style
Create or update local Figma text styles, including font, fills, spacing, and variable-font settings, to keep typography consistent across designs.
Instructions
Create or update a local text style. For variable fonts, pass variationSettings (OpenType axis map) and optionally omit fontStyle so Figma picks the matching named instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| fills | No | ||
| fillsHex | No | ||
| fontSize | No | ||
| textCase | No | ||
| fontStyle | No | ||
| fontFamily | Yes | ||
| lineHeight | No | ||
| letterSpacing | No | ||
| textDecoration | No | ||
| paragraphSpacing | No | ||
| variationSettings | No | Variable-font axis values keyed by OpenType tag, e.g. { wght: 550 }. |