create_text_style
Creates a local Figma text style (typography token) with configurable font, size, spacing, and case. Use slash names to group styles and get the style ID for applying it.
Instructions
Create a local text style (typography token). Use slashes in the name to group styles, e.g. 'Heading/H1'. Returns the style id for apply_text_style.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Style name, e.g. 'Body/Medium 14' | |
| 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 |