Skip to content

A small plugin to Figma for generating and exporting your styles to CSS custom properties (variables).

Notifications You must be signed in to change notification settings

outcassed/export-to-css-variables

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Export styles to CSS variables

A small plugin to Figma for generating and exporting your styles to CSS custom properties (variables).

To use, create some styles, run the plugin, select your color system (RGBA, Hex, or HSLA) and if you want to use REM units for text, and hit Generate.

The plugin generates the following:

  • Color in a selected color system.
  • Text size (can select to export as REM units by selecting a style as base).
  • Box-shadow from effects.
  • Blur filter from effects.

Note:

  • Slashes that Figma uses for grouping is converted to double-dashes to follow the BEM methodology (modifiers).
  • spaces and camelCase naming is converted to kebab-case naming.
  • Special characters are removed.
  • Plugin will only generate from solid colors, no gradients or images.
  • If a style has more than one color, only the first color will be generated.

About

A small plugin to Figma for generating and exporting your styles to CSS custom properties (variables).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 91.2%
  • JavaScript 4.6%
  • TypeScript 4.2%