From a Figma file

Docs

The Figma plugin reads a Figma file and sends what it read to DS source. There are three ways to use what it sends, all from the plugin's Import from this file section once you are signed in there:

  • Bring changes in, for a file you synced from a design system with Sync & build: the variables edited in Figma since the last sync come back as unsaved edits. No AI, no cost.
  • Make a new design system, for any file: the app opens the creation wizard seeded from the file.
  • Update a design system, for any file: the file's colours, fonts, corners and shadows are laid over one of your design systems.

How to use it

In the plugin, press Sign in, enter the code it shows on the page its button opens, and approve. The sign-in can only list your design systems and send files. Sign out ends it, as does revoking it under Coding apps on your profile.

Bring changes in. In a file synced from a design system, press Bring changes into “<name>”. The workbench opens with N changes from <file> above the panes and the changes as unsaved edits; Show changes lists them and anything not brought over. Save or Discard as with any edit.

Make a new design system. Press Make a new design system. The browser opens the creation page with the prompt filled in; press Design. The wizard bar reads Reading the Figma file… while an AI check reads what the plugin found, then the questions start from the file's own system. The first card, Keep the file’s colours, keeps its exact colours. From there it is Create with AI.

Update a design system. Pick a design system under Update a design system and press the button. The workbench opens with Read <file>, a model picker and Check with AI with its price. Nothing runs until you press it. When the check answers, the changes land as unsaved edits, in one undo step.

How it works

The plugin reads the file's variables, modes, styles, components, and what the open page (or your selection) paints, gradients included. Open your main design page first. It never reads text layers' text; a large file is trimmed to fit.

Bring changes in compares the file with the record Sync & build left in it: only variables changed in Figma since then are offered, so an edit made on the website after the sync is not undone. A file synced before that record existed lists every difference and says so.

Make new and Update first guess a theme from the file, the same way a site audit guesses one from a site. Role names count first (Primary, Background, Text/Primary) unless no layer uses that variable, palette shades such as Blue/600 claim no role, buttons (components or frames) vote for the primary, and status colours such as Error never do. Modes named Light and Dark give both themes. Then one AI call checks the guess against what was read: it is told to match the file, never to improve it, and that every name in the file is data. It keeps the exact colour of the primary and accent, and repairs contrast without moving them. Make new also keeps a button's gradient, glass and a backdrop of colourful glows; Update adds none. That call costs what the AI check of a site audit costs, on your key or on credits.

Update changes only what the file shows. A file with colours but no text styles leaves your fonts alone, and the same goes for corners, shadows and a dark theme. A colour family the file says nothing about, such as your reds when it only names a brand colour, keeps yours. It never touches component, spacing or custom tokens. A design system seeded with the standard set keeps its colours in families such as zinc and blue, so the families the file needs (brand, neutral and the rest) are added first. They are written at once, since an unsaved edit cannot point at a colour that does not exist, and the banner says so: Discard leaves them in place, unused. A colour the design system lacks a shade of moves to its nearest shade, with a note.

A read is kept seven days, for the account that sent it alone.

What can go wrong

  • That Figma read isn't in the account signed in here, or is over 7 days old.: the plugin and the browser are signed in as different accounts, or the read expired. Run the plugin again, signed in as the same account.
  • This file was synced from a design system that is not in this account.: sign in to the plugin as that design system's owner.
  • A change is listed under Not brought over: a variable added in Figma, a fixed value where the design system points at a palette colour, or a change that would break the token rules.
  • The colour families could not be added. Try again.: Retry tries the landing again without a second AI check.
  • Your sign-in ended. Sign in again.: the sign-in was revoked, expired, or your password changed.