Updates for 2025-03-12
We've added a timeout to the figma.codegen.on
callback. Now, if code generation takes longer than 3 seconds, it will automatically stop and an error message will be displayed in the codegen panel.
For more information, see:
We've added a timeout to the figma.codegen.on
callback. Now, if code generation takes longer than 3 seconds, it will automatically stop and an error message will be displayed in the codegen panel.
For more information, see:
To help developers enhance decks and presentations, Figma Slides now supports plugins! You can use the new API features to effectively enable users to create beautiful, functional slide decks.
New:
figma.editorType
can now return slides
when a plugin is running in Figma Slides.figma.viewport.slidesMode
can be used to toggle between grid
view or single-slide
view.figma.currentPage.focusedSlide
identifies the slide currently focused on in the interface.figma.getSlideGrid()
returns the slide grid, a 2D representation of slides within a deck.figma.setSlideGrid()
is used to reorder slides in the grid.getSlideTransition()
gets the current transition for a given SLIDE
node.setSlideTransition()
is used to set the transition for a given SLIDE
node.For more information, see the Working in Slides guide.
Figma now supports proportional resizing via the Lock aspect ratio
option. This replaces the legacy constrainProportions
option. constrainProportions
maintains backwards compatibility by setting the new targetAspectRatio
field, but we encourage you to use the new property.
Previously, createPage could incorrectly create more pages than supported by Figma's Starter plan. This issue has been fixed.
New:
Figma now supports customizing underlines. The following changes were made to support getting and setting new underline features:
New:
Figma now supports per-paragraph fields. The following changes were made to support getting and setting indent and spacing per paragraph:
New:
We’ve made updates to our Plugin and REST APIs so you can build more powerful plugins that increase efficiency and create more dynamic user experiences.
Annotations and measurements: Create and edit annotations and measurements from Dev Mode through the Plugin API. Generate bulk annotations, format annotations according to a style or template, add context or links from other tools to annotations, and more. Learn more about annotations and measurements.
Rich text formatting for component description: Build plugins that can read and edit the full rich-text version of the component description, giving users the same level of detail as Figma's UI. Learn more
Advanced prototyping interactions: Access all prototyping reactions through the Plugin and REST APIs to bring Figma prototypes to life in other interaction tools. Learn more
New:
The Plugin API now contains support for page dividers:
This version of the plugin-typings package was skipped.
New