CSS Variables to Figma
by Sherif SALEH
Import existing css variables to figma variables
Installs
50
Likes
8
Users
486
Views
874
Preview
About this plugin
Import css variables into Figma variablesThis plugin enables you import color variables from CSS into Figma, supporting both single-mode and dual Light/Dark mode setups. It maps your CSS variables to Figma's variable modes, converting formats like OKLCH (Tailwind), HEX, RGBA, and RGB into Figma-compatible HEX values. OKLCH, P3, and HCT color values are also preserved and attached to each variable for reference.
Update:
AttachExample: .light {--color-primary: #000;}.dark {--color-primary: #fff;}How it works: Paste your CSS variables in the text area below.
Click "Export to JSON" to generate a Figma-compatible variables file.
Import the JSON file into Figma using the Figma Variables by Honza TomanWatch video→ how it works.
Currently supported: Color variablesAttach oklch, p3 colors and HCT values to variable syntaxNext updates: Border radius variablesSpacing variablesShadows...Feedback and supportLet us know your feedback and suggestions! @sans_sherifSupport the development of this plugin buy us a coffee ☕
More import & export plugins plugins
View allhtml.to.design — by ‹div›RIOTS — Import websites to Figma designs (web,html,css)
Paidby divRIOTS
Convert any website into fully editable Figma designs
Figma to HTML
by Figma2HTML
Convert Figma design to HTML
TinyImage Compressor
Paidby Hypermatic
Export/downsize compressed JPG, PNG, SVG, WebP, GIF, WebM, MP4, AVIF and PDF image files from Figma
Pitchdeck Presentation Studio
Paidby Hypermatic
Turn your Figma designs into animated slide decks or export them to PowerPoint/PDF