extract_figma_styles
Extract design tokens (colors, typography, effects) from a Figma file via REST API, normalize, and load into the active token store using a Figma Personal Access Token.
Instructions
Extract design tokens (colors, typography, effects) from a Figma file via the Figma REST API. Normalizes tokens and loads them into the active token store. Requires a Figma Personal Access Token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_ids | No | Optional specific node IDs to extract. If omitted, extracts all published styles. | |
| figma_pat | Yes | Figma Personal Access Token for API access. Not stored or logged. Generate at figma.com/developers/api#access-tokens | |
| namespace | No | Optional prefix for extracted token CSS variables (e.g., 'figma' produces --figma-color-primary) | |
| figma_file_key | Yes | The Figma file key (alphanumeric ID from the file URL, e.g., 'abc123XYZ') | |
| merge_strategy | No | How to handle conflicts with existing tokens | replace |