A Figma plugin that finds remote variable references and connects them to local variables with matching names.
When you copy components from external libraries or work with files that reference external tokens, all those variables show up as "remote" - meaning they're pointing to a different library.
Token Connector scans your file, finds all remote token references, and reconnects them to your local tokens that have the same name.
- Color tokens (fills, strokes, gradient stops)
- Spacing tokens (padding, gap, item spacing)
- Border tokens (radius, stroke weight)
- Sizing tokens (width, height, min/max values)
This only works when your local token names exactly match the remote token names (including collection names).
Example:
- Remote:
Colors/Fill/Primary/default - Local:
Colors/Fill/Primary/default - ✅ Match - will be connected
git clone https://github.com/selfishprimate/token-connector.gitOr download as ZIP and extract.
npm installnpm run buildThis compiles code.ts to code.js.
- Open Figma Desktop
- Go to Plugins → Development → Import plugin from manifest...
- Select the
manifest.jsonfile from this repository - The plugin is now available under Plugins → Development → Token Connector
- Open a Figma file with remote variable references
- Run the plugin: Plugins → Development → Token Connector
- Click Scan Page (or Scan All Pages for the entire file)
- Review the found remote references
- Click Connect All to reconnect them to local variables
Watch mode for development:
npm run watchThis will automatically recompile when you make changes to code.ts.
token-connector/
├── manifest.json # Figma plugin manifest
├── code.ts # Plugin logic (TypeScript)
├── code.js # Compiled plugin code
├── ui.html # Plugin UI
├── package.json # Dependencies
└── tsconfig.json # TypeScript config
MIT