# Figma plugin

> Sync a saved project into Figma variables and styles.

Page: https://designlang.app/docs/figma-plugin

The plugin turns a saved project into Figma variables, text styles and effect styles. It runs inside your file, so it does not need Figma’s Variables REST API, which is limited to Enterprise plans.

## What it creates

- Two collections: designlang Primitives and designlang Semantic. Semantic variables are real aliases of the primitives.
- Light and dark modes, when you pick a dark-mode snapshot. Figma’s free plan allows one mode per collection, and the plugin says so and skips dark.
- Text styles from type tokens and effect styles from shadows, named `designlang/...`.
- Re-syncing updates by name in place, with no duplicates.

## Set up

1. Open your project in [your projects](https://app.designlang.app/projects) and create a context key on its Connect tab.
2. In Figma, choose Plugins, Development, Import plugin from manifest, and select `figma-plugin/manifest.json` from the [repository](https://github.com/Manavarya09/design-extract/tree/main/figma-plugin).
3. Run the plugin, paste the key and press Add project.
4. Pick a snapshot and press Sync to Figma.

The plugin is loaded from the repository today. It is not on the Figma Community yet.
