Variables to CSS
Export Figma variables as CSS variables easily
Plugin Preview
About this plugin
Simple way to export your Figma variables as CSS variable tokens with support for breakpoints (Mobile, Desktop) and REM for font sizes.
How to Use
- Open the plugin from Figma's Plugins menu → Variables to CSS
- View your CSS - All Figma variables automatically convert to CSS custom properties
- Copy to clipboard - Click the copy button to use in your project
- Configure settings (optional) - Adjust rem size and breakpoint as needed
Variable Mode Conventions
The plugin automatically converts Figma variable modes to CSS using these conventions:
- Light/Default mode →
:rootselector - Dark mode →
.context--darkclass - Mobile mode →
@media (max-width: 768px) - Desktop mode →
@media (min-width: 769px) - Custom modes →
.context--[mode-name]classes
Automatic Conversions
- Variable names → CSS format (e.g., Color/Primary → --color-primary)
- Font sizes & line heights → rem units (configurable base: 16px)
- Variable aliases → var() references
- Colors → hex or rgba format
Settings
- 1rem equals: Base pixel value for typography (default: 16px)
- Breakpoint: Mobile/Desktop threshold (default: 768px)
Settings save automatically and persist between sessions.
Plugin Details
| Version | 3 |
|---|---|
| Created | September 29, 2025 |
| Last Updated | September 30, 2025 |
| Category | Software development |
| Creator | Philipp Triebel |
| Stats | 1 installs, 0 likes |
| Pricing | Free |
Technical Details
- API:1.0.0
- UI:ui.html
- main:code.js
- Document Access:dynamic-page
- Editor Types:figma
- Allowed Domains:
- none
More Like This
Discover other plugins in the Software development category.
Figma to Code (HTML, Tailwind, Flutter, SwiftUI)
Code Conversion Made Easy: Figma to Web & Apps
Builder.io - Figma to Code & AI Apps (React, Vue, Tailwind, etc)
Export designs to clean, responsive code or turn Figma screens into AI apps and prototypes.
SkewDat
Skew any layer or group with all layers preserved to edit.