TutorialsAI4 min read

How to Generate Your Own Figma Plugin in 2026

Figma can now build any plugin from a text prompt. In this article, we'll break down how it works!

For years, plugins have solved designers' pain points: whatever Figma couldn't do, the community built by hand. We've put together our own share of roundups of plugins that make working in Figma easier—a whole ecosystem has grown up around them, from free two-button utilities to full-fledged subscription businesses.

Figma Generative Plugins. Source: Figma

Then, at Config 2026, Figma unveiled a feature that flips that model on its head. Figma's generative plugins let you create your own plugin from a text prompt, without a single line of code, right in your working file. In this article, we'll look at how it works and build four useful plugins, with prompts you can simply copy and use.

What Are Generative Plugins in Figma

Generative plugins are a feature of Figma's AI agent. In the chat, you describe the tool you need: what it does, what settings it has, what the output looks like. The agent writes the code, builds the interface, and hands you a finished plugin right in your file.

Interface of a Figma generative plugin built on the PropsKit UI kit – an example of the Figma AI agent at work

Figma's PropsKit UI kit. Source: Figma

The interface of these plugins is built on PropsKit, Figma's internal UI kit. That's why a generated plugin doesn't look like some foreign window with a clunky layout, but like a native panel of Figma itself: the same elements, the same input fields, the same sliders. And you can keep refining the plugin just by continuing the conversation with the agent.

How It Used to Work: Community, Roundups, Subscriptions

The classic routine went like this: you run into a task Figma can't handle natively. You head to Community and sift through a dozen plugins with similar names; half of them were abandoned about three years ago, and another third require sign-up and a subscription. Eventually you find one that works and get used to it—and six months later the author stops maintaining it, and you're back to square one.

Figma plugins in the Community section – the catalog where people used to look for Figma plugins

Plugins in Figma Community

The plugin system itself was a great solution for its time. The Figma community has coded thousands of tools, and the biggest pain points have long been covered by solid plugins. We even shared a roundup of great plugins ourselves in the plugins lesson of our free Figmaster course—it's still there, so head over and grab it.

The problem lay elsewhere: if your task is even slightly unusual, there's no ready-made plugin for it, and there never will be. Writing your own meant getting to grips with code and wading into the weeds of programming, which designers very rarely did (before vibe coding, of course 😅).

Chart Generator Plugin

Let's get down to actually generating plugins in Figma. First up: a plugin that generates charts.

Figma generative plugin for charts – how to create a plugin in Figma without code

Graph chart plugin

A must-have for dashboards. Drawing bar charts by hand and then rebuilding them for new data is a pain familiar to anyone who has designed even one analytics interface.

Generation Prompt:

Use this prompt

Create a plugin that generates editable charts on the canvas as vector layers (not images). Chart types (dropdown control): Line, Bar, Pie. Data modes (toggle control): - «Random» — generate 6–12 plausible data points automatically - «Paste data» — a text field where I paste comma- or newline-separated values (label,value per line) Controls: - Trend slider (for Line/Bar): from «declining» to «flat» to «growing» — skews random data toward that trend - Stroke width slider (1–8 px) for line charts - Data points count slider (3–20) - Color: use the file’s local color variables if available, otherwise a default palette - Toggle: show/hide value labels and axis labels Output: a named frame with auto layout where possible; every element (bars, lines, labels) must be a separate editable layer. Regenerate on every control change.

Once it's generated, test the plugin on real data: paste in 6–8 values and see how it handles the labels and how accurately it renders them. From there, you can modify the plugin with new prompts in the same chat—for example, add a curve-smoothing slider for when it generates a Line Chart.

QR Code Generator

It may seem like a toy, but it has very practical uses: event badges with a unique QR code for each attendee, posters with registration codes, menus, business cards. Before, you'd have had to generate the codes in an external service and drag them in one at a time.

Figma plugin for generating QR codes – no-code Figma plugins powered by the Figma AI agent

QR-code generator plugin

Generation Prompt:

Use this prompt

Create a plugin called «QR code generator» that generates scannable QR codes as vector SVG shapes and pastes them onto the Figma canvas. Two-step flow: - User configures settings and clicks «Generate» — this renders a live preview of the QR code inside the plugin panel (rendered as an SVG displayed in an <img> tag). - User clicks «Paste on canvas» (disabled until a preview is generated) — this creates the QR code as a vector node on the canvas using figma.createNodeFromSvg(), centered in the viewport. Controls: - URL or text — text input, default: https://figma.com - Error correction — options: L, M, Q, H (default M) - Size — slider 128–1024px, step 8, default 512 - Corner style — dropdown: Square, Rounded, Dots - Foreground color — color picker, default black - Background color — color picker, default white - Transparent background — switch (when on, preview shows checkerboard behind the QR code) Preview behavior: - Preview area is 200×200px with a checkerboard background pattern (CSS repeating-conic-gradient). - The QR code preview is an SVG rendered as a data URI in an <img> element — not canvas-based. - After generating, changing foreground color, background color, corner style, or transparent background should automatically re-request the preview without needing to click Generate again. - Text or error correction changes require clicking Generate again. Canvas output: - QR code is built as a single SVG <path> element with all cells combined, then placed on canvas via figma.createNodeFromSvg(). - Square style = rectangles, Rounded = rounded rectangles (0.3 × cell radius), Dots = circles. - Frame background fill respects the background color and transparent toggle. - The frame is named QR — {text} (truncated to 60 chars). Technical requirements: - Implement the full QR encoding algorithm in code.ts: byte-mode encoding, Reed-Solomon error correction with GF(256) arithmetic, versions 1–10, all 8 mask patterns with penalty scoring, format info bits. - SVG path generation happens in code.ts and the complete SVG string is sent to the UI for preview. - Wrap both preview and generate handlers in try/catch — show errors in the preview area rather than failing silently. - Support params persistence via setPluginData / getPluginData so relaunching from a QR frame restores its settings. - Remember params between runs using paramsMemory.

Be sure to test the generated codes. And just like the chart plugin, you can keep refining this one: add other code display patterns, formats, and so on.

Auto Layout Tables

Here's a common problem for students in our UX/UI Designer course: in large interfaces (admin panels, CRMs, dashboards), there's no getting around tables. And building them by hand with Auto Layout is slow and tedious, especially if you haven't quite figured out how Auto Layout works.

Figma generative plugin for building tables – Figma plugins for admin panels and dashboards

Table generator plugin

Generation Prompt:

Use this prompt

Create a plugin that builds data tables using proper auto layout structure. Structure: table frame (vertical auto layout) → row frames (horizontal auto layout) → cell frames with text layers. Cells must hug content vertically and fill horizontally so the table resizes cleanly when data is edited. Important: set layoutSizingHorizontal / layoutSizingVertical on child nodes only AFTER appendChild — not before, otherwise Figma throws an error. Data modes (toggle between two options): - «Random» — generate placeholder content using realistic names, emails, dates, statuses, and dollar amounts - «Paste data» — multiline text field accepting CSV or tab-separated values; first line becomes the header row Controls: - Columns slider (2–8) and rows slider (2–20) — for random mode - Cell padding slider (4–32 px) - Toggle: header row with dark background (#222) and white text - Toggle: zebra striping — alternating white / light-grey row backgrounds - Border width slider (0–2 px) and border color picker - Text styles: look up the file’s local text styles — use a bold/heading style for headers and a body/regular style for cell text. Fall back to Inter Bold / Inter Regular if none exist. Output: one named «Table» frame centered in the viewport; every cell’s text remains fully editable. The button should only be enabled when nothing is selected.

Component Variant Generator

One of the routine parts of working on a UI kit or a design system is breaking every component down into states. Students from our Design Systems course will back us up on that. It's hours of mechanical work… Design systems are slow and expensive. So why not automate part of the process with a plugin that generates component variants?

Figma generative plugin for component variants – how to create a plugin in Figma without code

Component variant generator plugin

Generation Prompt:

Use this prompt

Create a plugin that generates interactive state variants for a selected component. Behavior: I select a component (or a frame to be converted into a component). The plugin creates a component set with variants along a «State» property: Default, Hover, Pressed, Disabled, Focused. State styling rules (each adjustable via controls): - Hover: lighten or darken fill by N% (slider, default 8%) - Pressed: darken fill by N% (slider, default 16%) - Disabled: reduce opacity (slider, default 40%) and desaturate - Focused: add an outer stroke ring (color picker + width slider, default 2 px) Controls: - Toggle per state: include/exclude it from the set - Direction dropdown: lay variants out horizontally or vertically with 24 px spacing Use color variables from the file where possible instead of hardcoded values. Keep all overrides (text, icons) intact across variants. Name the set after the original layer.

Limitations and Pitfalls

So you don't come away thinking it's all magic and we're living in a world of rainbows and unicorns, here's an honest list of what you'll most likely run into.

  • It's a beta. Plugins don't come out perfect on the first try. In my experience, simple utilities (tables, variants) take 1–2 iterations, while anything with non-trivial logic (QR codes, charts) takes 3–5 rounds of fixes in the chat. Budget time for that, and always test the result on a real case.
  • Credits. Generation is free right now, but once the agent is out of beta, creating and editing plugins will cost AI credits.
  • Plugins can't be published yet. You can't share a plugin with the community or neatly roll it out to your whole organization for now—only through access to the file. That's why we're sharing prompts rather than finished plugins. Figma promises publishing “in the coming months,” but there are no exact dates yet.
  • Complex is still complex. A generative plugin handles manipulations inside Figma really well. But a plugin that needs external APIs, authentication, or a database is still the territory of traditional development.

Are Plugins Dying?

The main shift isn't even in the technology; it's in the model. A plugin used to be a product: someone built it for thousands of users, averaging it out to suit everyone. Now a plugin is a personal tool for your specific workflow, created in ten minutes and tossed without regret once you no longer need it. It's part of a bigger shift: AI is already changing the very work designers do, and plugins are just one example.

Figma's AI agent can already solve tasks directly, with no plugin at all: describe the problem, get the result. The way I see it, plugins are worth building for tasks you repeat over and over, while one-off, narrow jobs are handled perfectly well by the Figma AI Agent.

Start small: take one prompt from this article, paste it into the agent, and tailor the plugin to your needs. It's the best way to get a feel for the new mechanics. And if you want to learn Figma systematically, from Auto Layout to components, and become a real Figma pro, jump into our free Figmaster course.

Article updated

Subscribe to our regular digest

We'll send you useful articles and news from the world of AI, design, tech, and career growthdesign, and tech

Over 3,000 people already get our useful content