# Figma Guide
In this guide, we’ll learn how to work with Figma and Corex UI Design Tokens using the Tokens Studio plugin.
Tokens Studio for Figma is the bridge between your Figma designs and the design tokens generated by Corex UI.
It allows two-way synchronization between your token files and your design styles — keeping design and code perfectly aligned.
You can learn more about the plugin in the Official Tokens Studio documentation .
# Tokens File
You can find the Figma-compatible tokens file inside the Corex UI GitHub repository in the @corex-ui/design
package:
https://github.com/corex-ui/corex-ui/blob/main/packages/design/tokens/tokens.json
This file follows the Tokens Studio schema, with organized groups for colors, typography, spacing, radii, and themes.
If you are using Tokens Studio Pro
you can also find the multi files tokens
https://github.com/corex-ui/corex-ui/blob/main/packages/design/tokens/multi
# Installation
- Install Tokens Studio for Figma from the Figma Community .
- Open or create a new Figma design file.
- Launch the plugin via
Right-click → Plugins → Tokens Studio.
# Connect Your Token File
There are two main ways to connect your Corex UI tokens:
# Option 1 — Local JSON File (Manual)
- Open Tokens Studio inside Figma.
- Go to the Settings tab.
- Choose Storage Type → File.
- Click Load from File and select your downloaded
tokens-figma.json
. - Your tokens will now appear in the left panel, grouped by category (color, typography, spacing, etc.).
# Option 2 — GitHub Sync (Recommended)
If your tokens are stored in a GitHub repository (e.g., your design system or Corex UI fork):
- In Tokens Studio, go to Settings → Storage → GitHub.
- Connect your GitHub account.
- Enter the repository URL (for example:
https://github.com/user/my-corex-ui
). - Set the file path:
packages/design/tokens/tokens.json
- Click Connect.
Tokens Studio will now stay in sync with your remote token file automatically.
# Apply Tokens in Figma
Once your tokens are loaded, you can:
- Apply color tokens to fills, strokes, or text.
- Apply typography tokens to text layers.
- Use spacing and radius tokens in auto-layouts.
- Use themes to switch between light and dark or brand variations.
You can also link tokens to Figma styles:
- Go to the Sync tab in Tokens Studio.
- Click Link Figma Styles.
- Select which groups to link (e.g., Colors, Typography).
- Tokens Studio will automatically create or update your styles.
# Export Back to Code
After editing your tokens in Tokens Studio:
- Open Settings → Storage.
- Click Push Changes (if using GitHub sync).
- Your JSON file will be updated in your repository — ready to use in your Corex UI or Style Dictionary build.
# Tips
Two-Way Sync
Tokens Studio can both read and write tokens — perfect for design + dev collaboration.
Best Practice
Always store your tokens in GitHub rather than local files — it allows design updates to flow automatically to your build pipeline.
Now your workflow between Corex UI, Figma, and Tokens Studio is fully connected and production-ready