Transform your Figma designs into production-ready React components with Tailwind CSS automatically.
BlackyFigma leverages the official Figma API to accurately extract design information and generate clean, maintainable code. It's not just a converter; it's a bridge between your design and your code.
- Create or edit your
.npmrcfile in your home directory or project root:
@xgauravyaduvanshii:registry=https://npm.pkg.github.com- Install globally using your favorite package manager:
npm install -g @xgauravyaduvanshii/blackyfigmaThe easiest way to get started without installation:
npx @xgauravyaduvanshii/blackyfigma --interactive- 🎯 Official Figma API Integration - Direct integration for maximum accuracy.
- ⚛️ React & TypeScript - Generates modern, typed components ready for production.
- 🎨 Tailwind CSS - Automatic Tailwind class generation with responsive support.
- 🤖 AI-Powered Optimization - Optional Gemini AI cleanup for human-like code quality.
- 📦 Project Scaffolding - Automatically creates a complete React project structure if needed.
- Go to your Figma Account Settings.
- Scroll to Personal Access Tokens.
- Click Generate new token.
- Give it a descriptive name and copy the token safely.
Save your token to avoid entering it every time:
# Linux/Mac
export FIGMA_TOKEN=your_token_here
# Windows (PowerShell)
$env:FIGMA_TOKEN="your_token_here"This mode will guide you through the process and securely save your Gemini API Key:
blackyfigma --interactiveblackyfigma "https://www.figma.com/design/YOUR_URL" --token YOUR_TOKEN| Option | Description | Default |
|---|---|---|
-t, --token |
Figma access token | env.FIGMA_TOKEN |
-c, --component |
Component output path | ./src/components |
-a, --assets |
Assets directory | ./public |
--no-tailwind |
Disable Tailwind CSS | false |
--optimize |
AI-powered code optimization | false |
--clean |
Use AI code cleaner | false |
--interactive |
Force interactive mode | false |
BlackyFigma also comes with a built-in REST API server.
# Start the server
bun run dev
# POST /v1/api/blacky-figmaRefer to API.md for full documentation.
# Dev Mode
bun run dev:cli
# Build
bun run build:cli
# Publish (GitHub Packages)
npm login --scope=@xgauravyaduvanshii --registry=https://npm.pkg.github.com
npm publish- Built by xgauravyaduvanshii @ flyingdarkdev.in
Licensed under the Functional Source License, Version 1.1 (FSL-1.1-MIT).
© 2026 Flying Dark Dev.
© 2026 Flying Dark Dev.
