Figma CSS Variables
Export Figma variables to CSS, SCSS, or JSON and deploy to Git seamlessly
Plugin Preview
About this plugin
Effortlessly export your Figma variables to CSS, SCSS, and JSON and deploy them to Git.
Questions & Support
đź’¬ Figma CSS Variables is continually improving, and we welcome your feedback.
If you notice any bugs or have any questions about the plugin, feel free to reach out via GitHub Discussions, and we'll help you troubleshoot quickly.
You can also report issues or suggest features on GitHub Issues.
Features
Export & Sync
- Analyze your variables: view all Figma variable collections and modes
- Instant generation: preview and export CSS, SCSS, or JSON from your variables (NEW)
- Flexible export options: copy code directly or download all generated CSS files
- One-click synchronization: always stay up to date with your latest Figma variables
- When exporting, a ZIP file is generated with all the CSS files at the root level
- ZIP export: when exporting, a ZIP file is generated with all files at the root level
Note on JSON export (NEW): JSON allows you to directly export the Figma variable collections as returned by the Figma API, unlocking access to variable data even if your plan doesn't include full API access.
Deploy to Git (Premium feature)
Automatically deploy your generated CSS/SCSS/JSON files to Git for seamless design–code collaboration.
Unlock Git deployment via Stripe.
- Connect to GitHub, GitLab, or a self-hosted GitLab instance
- Select multiple collections & modes to deploy in a single commit
- Commit messages are automatically pre-filled based on your selection
- Branches are customizable and automatically created if they do not exist
- Customize the target directory for your files using the "basePath" parameter
- Simplify collaboration between design and development
Git Integration & Security
Easily manage your Git providers:
- Add a new provider
- Edit the settings of an existing provider
- Delete a provider if it's no longer needed
When saving a Git provider, the following fields are available: "token", "owner", "repository", "branch", "basePath" and "host" (for self-hosted GitLab).
Your Git provider details are stored locally on your machine for privacy and security.
File structure
- A separate file is generated for each mode within a collection
- Files follow the naming pattern: "collectionName-modeName.css", "collectionName-modeName.scss", or "collectionName-modeName.json"
Variable transformations
Figma variables are transformed to ensure they are valid in CSS/SCSS:
- Slashes ("/") and spaces are replaced with hyphens ("-") in variable names
- Original casing of variable names is preserved (uppercase, lowercase, etc.)
- For numeric variables ("FLOAT" type), the unit "px" is automatically added
- Variables are sorted alphabetically
UI & Accessibility
- Dark mode compatible: adapts to Figma theme preference
- Keyboard navigation: all interactive elements support keyboard use
- Focus indicators: clear visual focus on form fields and interactive elements
- Accessibility compliance: designed following W3C and A11Y best practices
How to use
Exporting CSS/SCSS/JSON Variables
- Navigate to the Export tab
- View all Figma variables structured into collections and modes
- Select the output language (default: CSS). You can switch to SCSS or JSON as needed
- Select a collection and a mode
- Preview the generated code
- Copy code directly to your clipboard or download all files
Deploying to Git (Premium feature)
- Purchase a license via Stripe and enter it in the Settings tab
- Add a Git provider from the Settings tab
- Choose a provider (GitHub, GitLab)
- Fill in the required details in the configuration modal
- Save the provider settings
- Go to the Deploy tab and select a provider
- Select the output language (default: CSS)
- Use the multiple selection dropdown to choose the modes you wish to deploy
- Click Push to deploy the corresponding files to Git
Made with ❤️ by @yoriiis.
Plugin Details
| Version | 7 |
|---|---|
| Created | February 19, 2025 |
| Last Updated | November 17, 2025 |
| Category | Import & export plugins |
| Creator | Yoriiis |
| Stats | 90 installs, 22 likes |
| Pricing | Free |
Technical Details
- API:1.0.0
- UI:./ui.html
- main:./scripts/plugin.js
- Document Access:dynamic-page
- Network Access:
We use various external endpoints, read more: https://github.com/figma-css-variables/community/blob/main/docs/network-access.md
- Editor Types:figma
- Allowed Domains:
- *
More Like This
Discover other plugins in the Import & export plugins category.
html.to.design — by ‹div›RIOTS — Import websites to Figma designs (web,html,css)
Convert any website into fully editable Figma designs
Anima - Figma to Code React, HTML, CSS, Tailwind, MUI (DevMode Inspect React / HTML / Vue / CSS)
Anima - AI Powered Design to code
Figma to HTML
Convert Figma design to HTML