Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Creates an auto-layout frame with padding.
# figma_plugin/demo/code8.js
const f = figma.createFrame()
f.layoutMode = 'VERTICAL'
f.itemSpacing = 12
f.paddingLeft = 16
f.paddingRight = 16
f.paddingTop = 16
f.paddingBottom = 16
figma.currentPage.appendChild(f)
figma.closePlugin('AutoLayout frame created')The Figma Plugin API allows developers to create powerful plugins that extend Figma’s design environment. It provides programmatic access to Figma documents, nodes, components, and user interface elements, enabling automation, custom workflows, and interactive design tools.
Origin & Creator
Figma introduced the Plugin API in 2018 to allow the community to extend Figma’s capabilities with custom automation, tools, and integrations.
Industrial Note
The Figma Plugin API is widely used by UI/UX designers, product teams, and developers to automate repetitive tasks, generate assets, enforce design systems, and integrate with external tools or data sources.