Skip to main content
Sets the corner radius of a Figma node. You can apply the same radius to all corners or control each corner individually.

Parameters

string
required
The ID of the node to modify
number
required
Corner radius value in pixels (minimum: 0)
boolean[]
Array of 4 booleans to specify which corners to round: [topLeft, topRight, bottomRight, bottomLeft]. Defaults to [true, true, true, true] (all corners)

Response

Returns the name of the modified node and confirms the corner radius change.

Per-corner control

The corners parameter allows you to selectively round specific corners. Each boolean in the array controls one corner:
  • corners[0] - Top-left corner
  • corners[1] - Top-right corner
  • corners[2] - Bottom-right corner
  • corners[3] - Bottom-left corner
Set a boolean to true to apply the radius to that corner, or false to keep it sharp (0px radius).

Examples

Round all corners equally

Round only top corners

Round only bottom-left corner

Round right side corners

For pill-shaped buttons or cards, set the radius to half the node’s height and round all corners.