Skip to content

uznam8x/figon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}