No programming knowledge required

Generate Figma scripts effortlessly

Readable API docs and one-click generators that super-charge your design workflow. Build powerful automation scripts with simple clicks—no coding experience needed.

50+
API Properties
1-Click
Code Generation
AI-Ready
Script Format

What is a Figma Script?

A Figma Script is a short snippet of JavaScript you run inside Figma's Console or via custom actions in the Shortcuts plugin. It's the fastest way to automate repetitive tasks—no compile step, instant undo, AI‑friendly.

🔄
Round corners

Quickly apply consistent corner radius to any element

node.cornerRadius = 8
📝
Font size

Instantly adjust text properties across selections

node.fontSize = 12
📏
Set gap

Control spacing in auto-layout frames effortlessly

node.itemSpacing = 16

Instant

No compile step, run immediately in Figma

↩️

Undoable

All changes support Figma's undo system

🤖

AI-Friendly

Perfect format for AI assistants to generate

🎯

Precise

Target specific elements with surgical precision

Friendly API Documentation

Figma's official API is not user-friendly for designers. This site provides an easier way to understand and use the Figma API, letting anyone generate fully runnable code with simple UI. Every designer can use Figma scripts.

FRAMERECTANGLEELLIPSETEXTINSTANCEGROUPVECTORCOMPONENT

🏗️Layer Types Overview

Each property in Figma can only be applied to certain layer types. Below is a quick overview of common layer types. You need to select the correct type(s) for your script to work as expected.

FRAMERECTANGLEELLIPSETEXTINSTANCEGROUPVECTOR

⚙️Layer Properties

Here are the most common Figma layer properties, grouped by category. Each code snippet changes one property of a selected node. Use the code generator below to build a complete runnable script.

Position (X / Y)

Set the x and y position

FRAMERECTANGLEELLIPSETEXTINSTANCEGROUPVECTOR
Loading...
Size (Width / Height)

Resize node

FRAMERECTANGLEELLIPSEVECTORTEXT
Loading...
Rotation

Set rotation angle (degrees)

FRAMERECTANGLEELLIPSEVECTORTEXTINSTANCEGROUP
Loading...
Corner Radius

Set unified corner radius

RECTANGLEFRAMECOMPONENTINSTANCE
Loading...
Individual Corner Radius

Set each corner's radius

RECTANGLEFRAMECOMPONENTINSTANCE
Loading...
Direction (Horizontal/Vertical)

Set auto layout direction

FRAMECOMPONENT
Loading...
Item Spacing

Set gap between children

FRAMECOMPONENT
Loading...
Padding

Set paddings

FRAMECOMPONENT
Loading...
Horizontal Resizing

Set horizontal resizing mode

FRAMECOMPONENT
Loading...
Vertical Resizing

Set vertical resizing mode

FRAMECOMPONENT
Loading...
Primary Axis Align Items

Align children on primary axis

FRAMECOMPONENT
Loading...
Cross Axis Align Items

Align children on cross axis

FRAMECOMPONENT
Loading...
Solid Fill

Set a solid fill color

FRAMERECTANGLEELLIPSEVECTORTEXT
Loading...
Remove All Fills

Remove all fills

FRAMERECTANGLEELLIPSEVECTORTEXT
Loading...
Stroke Color & Weight

Set stroke color and weight

FRAMERECTANGLEELLIPSEVECTORTEXT
Loading...
Stroke Align

Set stroke alignment

FRAMERECTANGLEELLIPSEVECTOR
Loading...
Opacity

Set opacity 0-1

FRAMERECTANGLEELLIPSEVECTORTEXTGROUPINSTANCE
Loading...
Blend Mode

Set blend mode

FRAMERECTANGLEELLIPSEVECTORTEXTGROUPINSTANCE
Loading...
Drop Shadow

Add a drop shadow effect

FRAMERECTANGLEELLIPSEVECTOR
Loading...
Layer Blur

Add a layer blur effect

FRAMERECTANGLEELLIPSEVECTOR
Loading...
Replace Text

Change the text content

TEXT
Loading...
Font Size

Set font size

TEXT
Loading...
Font Weight

Set font weight (style)

TEXT
Loading...
Line Height

Set line height

TEXT
Loading...
Text Fill Color

Set text color

TEXT
Loading...
Complex Text Styling

Apply multiple text properties with font loading

TEXT
Loading...

🛠️Execution Templates & Helper Functions

To batch-run property changes on all selected nodes, or to use features like color parsing and loading fonts for text, use the following templates and helpers. Paste your node.xxx = xxx code into the for-loop of the template as needed.

📋Runnable Template

This template applies your property changes to all selected nodes in Figma.

Loading...

🎨Helper: convertColor()

Convert hex, rgb, or hsl colors to Figma RGB object. Supports formats like #ff0000, rgb(255,0,0), hsl(0,100%,50%).

Loading...

🌈Helper: convertColorWithOpacity()

Convert colors with opacity to Figma RGBA object. Handles alpha channel from rgba() and hsla() formats.

Loading...

📝Helper: loadFonts()

Load fonts for text nodes before applying font-related changes. Required for text property modifications.

Loading...

💡 Usage Example

Here's how to combine the template with helpers for a complete script:

Loading...