1. Home
  2. /
  3. Figma-plugin-api
  4. /
  5. Resize Selected Nodes

Resize Selected Nodes - Figma-plugin-api Typing CST Test

Loading…

Resize Selected Nodes — Figma-plugin-api Code

Resizes all selected items by +50px height.

# figma_plugin/demo/code6.js
figma.currentPage.selection.forEach(n => {
	if('resize' in n) {
		n.resize(n.width, n.height + 50)
	}
})
figma.closePlugin('Resized nodes')

Figma-plugin-api Language Guide

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.

Primary Use Cases

  • ▸Automating repetitive design tasks (e.g., resizing, renaming layers)
  • ▸Generating or modifying design content programmatically
  • ▸Design system enforcement and auditing
  • ▸Integrating external data (CSV, APIs) into Figma files
  • ▸Building interactive tools and utilities within Figma

Notable Features

  • ▸Full access to Figma document nodes and their properties
  • ▸Ability to create and manipulate components, frames, and shapes
  • ▸Plugin UI panels with HTML/CSS/JS
  • ▸Messaging between main and UI threads
  • ▸Supports async workflows and batch operations

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.

More Figma-plugin-api Typing Exercises

Select All FramesCreate a RectangleChange Text ContentDuplicate SelectionApply Drop ShadowGroup Selected NodesCreate AutoLayout FrameRename Selected LayersChange Fill to Blue

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher