Figma Make Scaffolder - VS Code Extension (built upon the work of: https://github.com/likang/figma-make-local-runner)
Hey @sucoro-ai & "Shouldn't have had to make this but here we are @figma..."
^^asked Copilot to update my readme and it really crushed it. This is siri dictation level execution lmao.
Look, this is what happens when you make a product that does ALMOST everything perfectly and solves a massive pain point in the design-to-dev world. We've all been there - those clients who want everything pixel-perfect, right? Figma Make gets us 95% of the way there, but then... well, here we are building workarounds.
Shoutout to @spetro511 for this figma-make-scaffolder - use it, love it, but fair warning: Figma will probably push an update tomorrow that breaks everything. Such is life! π€·ββοΈ
Built with β€οΈ by Sucoro | SurensCreations
Convert Figma Make exports into local React projects with automatic setup and import fixing.
β¨ Compatible with VS Code, Cursor, Windsurf, and other VS Code-based editors
Three powerful new features added in v1.1.0!
β¨ Component Preview Generation - Automatically generates a visual HTML catalog of all your components
π Import Fix Reporting - Get detailed transparency into the import fixing process
βοΈ Configuration Management - Save and reuse your scaffolding preferences
Jump to detailed feature descriptions β
- One-click setup: Automatically clones figma-make-local-runner repository
- Zip extraction: Extracts Figma Make export files directly into project structure
- Import fixing: Automatically removes version specifiers from imports (e.g.,
@radix-ui/react-slot@1.1.2β@radix-ui/react-slot) - Import reporting: Provides detailed reports on which imports were fixed during scaffolding
- Component preview: Generates an HTML catalog of all components in your export for easy reference
- Configuration management: Save and reuse your scaffolding preferences (auto-start dev server, auto-open project, etc.)
- Dependency management: Installs required dependencies
- Integrated terminal: Optionally starts the dev server immediately
- Right-click on any folder in the VS Code Explorer
- Select "Scaffold Figma Make Project"
- Choose your Figma Make .zip export file
- Wait for the setup to complete
- View the import fix report (if any imports were fixed)
- Choose to open the project and/or start the dev server
- View the component preview catalog (if enabled in settings)
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Type "Scaffold Figma Make Project"
- Select a target directory
- Choose your Figma Make .zip export file
- Wait for the setup to complete
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Type "Configure Scaffolder Settings"
- Set your preferences:
- Auto-start dev server after scaffolding
- Auto-open project in new window
- Generate component preview catalog
- Clone Repository: Downloads the latest figma-make-local-runner from GitHub
- Extract Export: Unzips your Figma Make export file
- Replace Demo: Removes the demo app from
src/directory - Copy Files: Moves all your Figma Make files into the
src/directory - Fix Imports: Automatically removes version specifiers that cause conflicts
- Report Fixes: Shows a detailed report of which imports were fixed
- Install Dependencies: Runs
npm installto set up the project - Generate Preview: Creates an HTML component catalog (if enabled)
- Ready to Go: Project is ready for
npm run dev
- VS Code 1.74.0 or higher
- Node.js and npm installed
- Git installed
- Internet connection (for cloning repository)
- Download the
.vsixfile - Open VS Code
- Go to Extensions view (
Ctrl+Shift+X) - Click the "..." menu and select "Install from VSIX..."
- Select the downloaded
.vsixfile
- Clone this repository
- Run
npm install - Run
npm run compile - Press
F5to run in Extension Development Host
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Package as VSIX
npx vsce packagefigma-make-scaffolder/
βββ src/
β βββ extension.ts # Main extension logic
βββ package.json # Extension manifest
βββ tsconfig.json # TypeScript configuration
βββ README.md # This file
- Export your project from Figma Make as a .zip file
- (Optional) Configure your preferences using "Configure Scaffolder Settings"
- In VS Code, right-click on your projects folder
- Select "Scaffold Figma Make Project"
- Select your exported .zip file
- The extension will:
- Create a new project folder
- Clone figma-make-local-runner
- Extract and copy your files
- Fix problematic imports
- Generate an import fix report
- Install dependencies
- Generate component preview catalog (if enabled)
- Open the project and run
npm run dev - Your Figma Make project is now running at
http://localhost:5173 - View the component catalog at
COMPONENT_PREVIEW.html(if generated)
Get detailed visibility into the import fixing process:
- See which files were processed
- Know how many imports were fixed
- View the list of all version specifiers that were removed (e.g.,
@radix-ui/react-slot@1.1.2β@radix-ui/react-slot)
How to use: After scaffolding completes, you'll see a notification with a "Show Details" button to view the full import fix report.
This helps you understand what changes were made to your exported code and ensures transparency in the scaffolding process.
Automatically generate a visual HTML catalog of all components in your Figma Make export:
- Browse all exported components in one place
- See component names, file paths, and exports
- Quickly reference available components while developing
- Responsive, styled HTML design for easy navigation
How to use: Enable this feature in the configuration settings, and after scaffolding, click "Open Preview" to view the component catalog in your browser.
Save your scaffolding preferences to streamline your workflow:
- Auto-start dev server: Automatically run
npm run devafter scaffolding - Auto-open project: Automatically open the new project in a new VS Code window
- Generate component preview: Automatically create the component catalog
How to use: Access via Command Palette: "Configure Scaffolder Settings". Your preferences will be saved and applied to all future scaffolding operations.
Make sure Git is installed and available in your system PATH.
The extension continues even if npm install has warnings. You can manually run npm install in the created project directory.
The extension automatically fixes common import issues, but some manual fixes might be needed for complex imports.
- Fork the repository
- Create a feature branch
- Make your changes
- Test with
F5in VS Code - Submit a pull request
MIT License - see LICENSE file for details
