create_paint_style
Create a new color style in Figma using RGBA components (0-1) and optional opacity, with '/' in names to group styles into folders.
Instructions
Create a new color style (paint style) in Figma. Use folder notation with '/' in the name to organize styles into groups, e.g., 'teal/teal-50'.
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>",
"r": "<r>",
"g": "<g>",
"b": "<b>"
},
"name": "create_paint_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Alpha/opacity (0-1, default: 1) | |
| b | Yes | Blue component (0-1) | |
| g | Yes | Green component (0-1) | |
| r | Yes | Red component (0-1) | |
| name | Yes | Name of the color style. Use '/' for grouping, e.g., 'teal/teal-50' |