Skip to content

clintonhalpin/cra-template-figma-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cra-template-figmaplugin

Use create react app to build a Figma Plugin, supafast.

npm version

Here are some of the key differences beyond default cra-template

  • build: Figma plugins don't have access to file system so JS/CSS are inlined with inline-build.sh
  • post-install: Automatically setup your Figma plugin files
    • Plugin Manifest: Added files for creating your plugin manifest
    • Plugin file: Added plugin file to show plugin when run in figma

To use this template run the following

# Clone starter
npx create-react-app newPlugin --template cra-template-figma-plugin
# Copy files from src directory
cd newPlugin && ./src/post-install.sh
# build plugin
pnpm run build

To run this plugin in Figma

  1. Open figma file
  2. Select an element and right click select Plugins > Development > Import Plugin from manifest

For more information, please refer to:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published