Giter Club home page Giter Club logo

figma-styles-json-conversion-tool's Introduction

Figma Styles JSON Tool

Demo Image

This is a Figma plugin for importing/exporting nested json or JS objects to figma color and text styles.

Installation

This plugin will be published to figma store soon. Otherwise please follow online guides for installing development plugins.

Valid Inputs

The tool accepts the following inputs as long as the key, value pairs point to a color. (RGB, HEX, HSL, etc)

  • JSON URL endpoint
  • JSON
  • JS Object

below is an example JS Object input:

{
  button: {
    primary: {
      base: {
        default: "#5b81cb",
        hover: "rgb(25,41,21)",
        pressed: "hsl(100,21,43)",
        disabled: "#81808D",
      },
    },
  },
};

Using Export

This tool also allows you to export local color and text styles as a nested JSON object to your clipboard.

Text styles

Text styles are exported as a nested JSON object that follows the React CSSProperties API which can be consumed in a component's style prop.

Color styles

currently only solid paints are exported.

figma-styles-json-conversion-tool's People

Contributors

bearcott avatar

Watchers

 avatar  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.