create_typography_scale
Generate a text-style scale from a base size and ratio, with default or custom steps, and optionally create sample text nodes in a Figma frame to preview the scale.
Instructions
Create a text-style scale (caption/body/h3/h2/h1/display by default, or custom steps) from a baseSize and ratio: fontSize = base * ratio^offset. Can also create sample text nodes in a frame (createSampleFrame) spanning the steps. For variable fonts, pass variationSettings and optionally omit fontStyle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | ||
| steps | No | ||
| prefix | No | ||
| baseSize | No | ||
| fontStyle | No | ||
| fontFamily | No | ||
| lineHeight | No | ||
| parentNodeId | No | ||
| letterSpacing | No | ||
| lineHeightRatio | No | ||
| createSampleFrame | No | ||
| variationSettings | No | Variable-font axis values keyed by OpenType tag, e.g. { wght: 550 }. |