Version 1, Update 113
New:
- Type definitions now ship with docstrings, so you can view Plugin API documentation alongside your code in IDEs such as VSCode.
Bug fixes:
- Fix the type definition for InteractiveSlideElementNode to include a
clone()method. - Fix the type definition for PatternPaint to include
visible,opacityandblendModeproperties.
Version 1, Update 111
Bug fixes:
- The type definition for CodegenPreferences.unit now uses uppercase string values instead of lowercase string values
Version 1, Update 110
We're adding the following new node types and properties in beta:
- Text path node type
- Transform group node type
- Texture and Noise effect types
- Progressive blur effect type
- Pattern paint type
The node types and properties in beta can be used with Figma Design and Figma Draw.
Updates for 2025-04-30
Some exciting news for codegen plugins! Thanks to your feedback, we've extended the figma.codegen.on callback timeout from 3s to 15s.
For more details, see:
Updates for 2025-04-03
New:
We've updated our Plugin API to support Annotation Categories, enabling developers to create organized and structured annotations with their plugins. Plugin API users can now:
- Initialize and manage Annotation Categories at the file level
- Create Categories with custom labels and colors.
- Read existing Annotation Categories defined for a file
- Assign a new Category to an Annotation for better organization
- Remove, add, and edit Categories as needed
This update builds upon our previous annotations support, giving you more control over how annotations are categorized and displayed in your plugins.
For more information, see:
Version 1, Update 109
We're making some changes to plugin data storage.
New:
- The total client storage limit is now 5 MB, up from 1 MB previously
setSharedPluginDataandsetSharedPluginDatahave new per-entry 100 kB limits
Bug fixes:
- Fix the return type for node.getRangeBoundVariable().
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:
Version 1, Update 108
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's Plugin API typings now support Figma Slides.
- Figma Slides has four new node types: SLIDE, SLIDE_ROW, SLIDE_GRID, and INTERACTIVE_SLIDE_ELEMENT.
figma.editorTypecan now returnslideswhen a plugin is running in Figma Slides.figma.viewport.slidesModecan be used to toggle betweengridview orsingle-slideview.figma.currentPage.focusedSlideidentifies 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 givenSLIDEnode.setSlideTransition()is used to set the transition for a givenSLIDEnode.
For more information, see the Working in Slides guide.
Version 1, Update 107
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.