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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"fontFamily": "<fontFamily>"
},
"name": "create_text_style"
}
}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 }. |