Figma

The UI/UX Engine Figma plugin syncs your project into a Figma file: tokens become variables with light, dark and density modes, and each component becomes a native component set with variants, properties and auto layout, built from the same definitions as your React components.

The Button component set in Figma, synced by the plugin

What a sync does

  • Variables. Token collections become variable collections with modes, semantic tokens alias primitives, and each variable has the var(--ue-…) code syntax.
  • Components. Variants and sizes become variant properties, and so does each state, such as pointer, disabled, loading and a select's open list. Focus is a focus boolean property that shows the focus ring, which keeps sets small. Text props become text properties, icon slots become instance-swap properties, and layouts become auto layout bound to variables. Content slots, such as a select's options or a dialog's actions, become Figma slots: on a placed instance you can add, remove and reorder items, and Figma flags a component the slot doesn't accept. A select's list is a layer against its trigger, shown in the open variants.
  • Changes to how sets are built. When the Engine changes a set's shape, the preview lists the variants it adds and the ones no longer in the manifest, which stay until you choose to remove them. A file synced by 0.2.0 needs one sync with a 0.3.0 plugin first. When a property changes type, as the Empty State's action did from an instance swap to a slot in 0.4.0, the sync stops on that set: delete it in Figma and sync again, and instances of it lose their link. Publish your library again afterwards, so other files pick up the change.
  • Your project, not only the Engine. The blocks you installed, as you edited them, and your own definitions sync too.
  • Updates in place. Every variable and node remembers its Engine id, so a sync updates what exists instead of recreating it. Instances placed in your files stay linked and keep their overrides, and renaming things in Figma is safe.
  • Edits are reported. If someone changed a generated node in Figma since the last sync, the preview lists the change, and it's kept unless you choose to overwrite it.

The plugin previews every change before applying it, and after applying it reads the file back and compares it with your definitions.

Install the plugin

The plugin isn't in the Figma Community yet. Run it as a development plugin in Figma desktop, from a clone of the repository. You need Node 26 and pnpm 12:

git clone https://github.com/uiuxassets/uiuxengine.git
cd uiuxengine
pnpm install
pnpm figma:build

In Figma desktop, choose Plugins → Development → Import plugin from manifest… and pick apps/figma-plugin/manifest.json. Development plugins don't run in Figma in the browser.

Sync your project from a file

In your project, write a bundle of its definitions and the icons they use:

npx @uiuxengine/cli figma

This writes engine.figma.json. Open the Figma file you want to sync, run Plugins → Development → UI/UX Engine, choose the bundle under Or import a bundle, check the preview and choose Apply sync. A bundle needs no network.

Sync while you work

npx @uiuxengine/cli figma --serve

This serves your project to the plugin on localhost and prints an address. Paste it into the plugin once, then use Check for changes after each edit to a definition. The server listens on your machine only and answers only under a random secret path.

Icons

Icon slots become instances of the UI/UX Icons Figma library, which needs each icon's library key. Without keys, the plugin builds the icons it needs as local components from the published SVGs, places them in an "Engine fallback icons" frame and lists them in the sync report.

If you use the UI/UX Icons library in Figma, you can capture its keys once: run npx @uiuxengine/cli figma --serve --icon-keys icon-keys.json, open the library file, run the plugin there and choose Capture icon keys from this file. Pass the same --icon-keys file to later syncs. It must be inside the project; keep it out of version control.

What doesn't sync

The sync goes one way, from definitions to Figma. Changes made in Figma aren't read back into code. React code that doesn't change a definition, such as event handlers or copy, stays in code. Anything Figma can't express, such as a rule on an absent prop, is listed in the sync report instead of being approximated.