GithubHelp home page GithubHelp logo

jonasluechau / export-to-css-variables Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fractalthought/export-to-css-variables

0.0 0.0 0.0 51 KB

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

JavaScript 4.62% TypeScript 4.16% HTML 91.22%

export-to-css-variables's Introduction

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.

export-to-css-variables's People

Contributors

fractalthought avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.