Cross-file Sync
Synchronizing variables between Figma files: how to transfer collections and variables from one file to another via SXL Studio.
What is Cross-file Sync
Cross-file Sync lets you synchronize Figma Variables between different Figma files. This is useful when:
- You have a master design system file and working project files
- You need to transfer updated variables from one file to another
- A team works across multiple files and needs to maintain consistency
How it works
- Open the Sync panel in the plugin
- Switch to the Cross-file Sync tab
- Enter the target Figma file's File Key and an Access Token (Figma Personal Access Token)
- The plugin will load collection and variable information from the remote file
- You'll see a diff — what was added, changed, or removed
- Select entries to apply
- Click Apply — selected changes will be applied to the local file
What gets synchronized
- Collections — creating new ones, updating existing ones
- Variables — values, types, names
- Modes — collection modes
Where to find the File Key
The File Key is part of the Figma file URL:
https://www.figma.com/design/XXXXXXXXXX/File-Name
^^^^^^^^^^
This is the File Key
Access Token
To access the remote file, you need a Figma Personal Access Token. It is used only to read data from the Figma REST API.
Data import and export
The plugin's bottom panel (Footer) has buttons for working with data:
Import
The Import button lets you load into the plugin:
- JSON files with tokens
- CSV files with Database data
- Mapping files
Files are added to the current plugin project and become available across all modules.
Export
The Download button opens a modal with several tabs:
| Tab | What gets exported |
|---|---|
| Tokens to Code | CSS / SwiftUI / Kotlin generation from tokens (see Tokens to Code) |
| Assets | Image export from selected elements |
| Data | JSON/CSV data export |
Image export
The Assets tab in the Download modal lets you export selected elements as images:
- Format: PNG, JPEG, WebP, GIF
- Scale: configurable (1x, 2x, 3x, etc.)
- Quality: configurable for JPEG/WebP
- Export is performed via the Figma API (
exportAsync), then re-encoded to the desired format on the UI side
How it works: the plugin first exports layers as PNG from Figma, then converts them to the selected format in the UI. You can choose specific nodes for export or export the current selection.
Related sections
- Inspect Overview — general tab structure
- Export Variables & Styles — exporting variables to Figma
- Git — Integration — syncing through Git