Plugin Setup
Learn how to set up and configure the Figma Variables plugin.
Installation
- Open Figma
- Go to Plugins > Development > Import plugin from manifest
- Select the
manifest.json
file from the plugin directory
Configuration
Create a config.json
file in your plugin directory:
json
{
"fileKey": "your-file-key",
"collections": ["Colors", "Typography", "Spacing"],
"exportPath": "./tokens"
}
Development Setup
Clone the repository
Install dependencies:
bashpnpm install
Start the development server:
bashpnpm run dev
Building for Production
Build the plugin:
bashpnpm run build
The built plugin will be in the
dist
directoryImport the built plugin into Figma