Skip to content

[Beta] Extract figma data into variable and export the inner data to json for engineer.

License

Notifications You must be signed in to change notification settings

hikariNTU/figma-plugin-extractor

Repository files navigation

figma-plugin-extractor

Extract basic design data to JSON and other preferred format.

Install prebundle version

Download the zip file in assets, and follow the instruction (install plugin in figma) below.

Develop

Recommend IDE: Visual Studio Code

Install Node.js

Requirement: version >= 14.0 both 14LTS, 16LTS is recommended.

Install pnpm Make sure pnpm pkg manager is install. Installation Guide

npm i -g pnpm

Install dependencies

pnpm i

UI Preview

pnpm start --filter plugin

http://localhost:3333/ should be opened by vite. You won't need this step if you mainly check the result in figma.

Bundle plugin

pnpm bundle --filter plugin

This will transform index.html and plugin.ts into dist folder.

install plugin in figma

Open figma and select plugins > development > import plugin from manifest, choose the manifest.json file located in package/plugin

You will only need to install once.

About

[Beta] Extract figma data into variable and export the inner data to json for engineer.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published