generate_figma_css
Converts Figma design tokens into CSS styles and can write the result to a specified output path, enabling AI coding tools to prototype websites from a Figma file.
Instructions
Generate CSS from Figma design tokens
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": {
"fileKey": "<fileKey>"
},
"name": "generate_figma_css"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileKey | Yes | The Figma file key | |
| outputPath | No | Output CSS file path (optional) |