create_text_style
Create a reusable text style (typography token) for consistent font, line height, and letter spacing across TEXT nodes.
Instructions
Create a reusable local text style (a typography token) that can be applied to TEXT nodes with apply_style_to_node. The font is loaded before assignment. lineHeight unit is AUTO / PIXELS / PERCENT (AUTO omits value); letterSpacing unit is PIXELS / PERCENT. For one-off formatting of a single node use set_text_properties instead. Returns { ok, styleId, name }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Style name, e.g. "Heading/H1" | |
| fontName | No | ||
| fontSize | No | ||
| lineHeight | No | ||
| description | No | ||
| letterSpacing | No |