uznam8x / figon

figma to html structure json

Repository from Github https://github.comuznam8x/figonRepository from Github https://github.comuznam8x/figon

figon

figon

Convert Figma to html format json

Install

yarn add figon

Basic usage

import figon from "figon";

figon(TOKEN, FILE).then((response) => console.log(response));

Figma name syntax example

$a.class1.class2[data1=a,data2=b]
{
  "tagName": "a",
  "classList": ["class1", "class2"],
  "dataset": {
    "data1": "a",
    "data2": "b"
  },
  ...more
}

About

figma to html structure json

License:MIT License


Languages

Language:TypeScript 96.2%Language:JavaScript 3.8%