manage_style
Create or update Figma named styles (Text, Paint, Effect, Grid) by specifying type, name, and properties via JSON. Provide styleId to update an existing style.
Instructions
Creates named styles (Text, Paint, Effect, Grid) or updates an existing style if styleId is provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of style to create or update | |
| name | Yes | Name of the style | |
| description | No | Description of the style | |
| propertiesJson | No | JSON string containing style properties: {fontName?: {family, style}, fontSize?: number, paints?: [{type, color?, opacity?, visible?}], effects?: [{type, visible?, color?, offset?, radius?, spread?}], layoutGrids?: [{pattern, sectionSize?, visible?, color?}]} | |
| styleId | No | ID of the style to update (if not creating a new one) | |
| bindVariables | No | Map of field names to variable IDs (to bind) or null (to unbind). For PAINT styles, valid fields include 'color'. For TEXT styles, fields include 'fontSize', 'fontFamily', etc. |