Skip to content

Plugin for Figma that reads css variables from a CSS or SCSS file and overrides or add the local styles.

Notifications You must be signed in to change notification settings

nuthinking/css-vars-to-figma-local-styles

Repository files navigation

CSS Vars To Local Styles

This plugin imports design tokens from a CSS or SCSS file and convert them to local styles.

Currently only supports colors.

Usage

The plugin gives the option to only override existing styles or to override existing and add missing ones.

It also gives the option to strip the "--" prefix of the CSS variables name from the local styles name.

Installation

Currently only in dev mode. Follow instructions here.

Because it has some dependencies, you still have to run:

npm install

Run development

npx webpack --mode=development --watch

Build for production

npx webpack --mode=production

About

Plugin for Figma that reads css variables from a CSS or SCSS file and overrides or add the local styles.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published