create_text_style
Create a reusable text style in Figma from design specifications. Define font, size, spacing, and other typography properties to maintain design system consistency.
Instructions
Create a reusable text style (typography) in Figma's local styles. This is useful for design system consistency.
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>",
"fontSize": "<fontSize>"
},
"name": "create_text_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the style (e.g., 'Heading/H1' or 'Body/Large') | |
| fontFamily | Yes | Font family name (e.g., 'Inter', 'Roboto') | |
| fontStyle | No | Font style (e.g., 'Regular', 'Bold', 'Italic'). Defaults to 'Regular'. | |
| fontSize | Yes | Font size in pixels | |
| letterSpacing | No | Letter spacing value (defaults to 0) | |
| letterSpacingUnit | No | Letter spacing unit (PIXELS or PERCENT, defaults to PIXELS) | |
| lineHeight | No | Line height value | |
| lineHeightUnit | No | Line height unit (PIXELS, PERCENT, or AUTO, defaults to AUTO if no value provided) | |
| textCase | No | Text case transformation | |
| textDecoration | No | Text decoration type |