图像到复出转换器
Want to skip the setup? Try VibeFigma instantly in the cloud - Import from Figma is built directly into VibeFlow UI. No installation needed, just paste your Figma URL and go. Transform your Figma designs into production-ready React components with Tailwind CSS automatically.
VibeFigma can be used in multiple ways:
npx vibefigma --interactive
The CLI will guide you through:
For Claude Code, install the skill to enable Figma to React conversion directly within your Claude Code environment.
npx skills add vibeflowing-inc/vibe_figma --skill vibefigma
npx vibefigma "https://www.figma.com/design/4i8Tp5btFPRqtkYXplnfT6/50-Web-Sign-up-log-in-designs--Community-?node-id=26-2944&t=d8ZfhZOwcLuUz0Jz-4" --token YOUR_TOKEN
# Add --force to overwrite existing files without confirmation
npx vibefigma "https://www.figma.com/design/4i8Tp5btFPRqtkYXplnfT6/50-Web-Sign-up-log-in-designs--Community-?node-id=26-2944&t=d8ZfhZOwcLuUz0Jz-4" --token YOUR_TOKEN --force
Set your Figma token once:
export FIGMA_TOKEN=your_figma_access_token
npx vibefigma "https://www.figma.com/design/4i8Tp5btFPRqtkYXplnfT6/50-Web-Sign-up-log-in-designs--Community-?node-id=26-2944&t=d8ZfhZOwcLuUz0Jz-4"
.env file or pass via --token flag# Convert a Figma design to React component
npx vibefigma "https://www.figma.com/design/4i8Tp5btFPRqtkYXplnfT6/50-Web-Sign-up-log-in-designs--Community-?node-id=26-2944&t=d8ZfhZOwcLuUz0Jz-4"
# Save to specific directory
npx vibefigma [url] -c ./src/components -a ./public/assets
# Save to specific file
npx vibefigma [url] -c ./src/components/Hero.tsx
# Generate regular CSS instead of Tailwind
npx vibefigma [url] --no-tailwind
# Overwrite existing files without prompting (useful when files already exist)
npx vibefigma [url] --force
# Example with specific output path
npx vibefigma [url] -c ./src/components/Hero.tsx --force
npx vibefigma [url] \
--token YOUR_TOKEN \
--component ./src/components \
--assets ./public/assets \
--optimize \
--clean
…
This project also includes a REST API server:
# Install dependencies
bun install
# Run development server
bun run dev
# Server runs on http://localhost:3000
Create a .env file:
GOOGLE_GENERATIVE_AI_API_KEY=your_google_ai_key
PORT=3000
HOST=0.0.0.0
CORS_ORIGIN=*
The project includes a REST API for Figma to React conversion:
POST /v1/api/vibe-figma
See API.md for full API documentation.
# Run CLI in development mode
bun run dev:cli
# Build CLI
bun run build:cli
# Test CLI locally
bun run cli -- --help
Contributions are welcome! Please feel free to submit a Pull Request.
This project includes code derived from css-to-tailwindcss by Salakhutdinov Salavat, licensed under the MIT License.
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for the full license text.
See the NOTICE file for details about third-party code used in this project.
VibeFigma is the open-source core powering VibeFlow UI.
For custom work or enterprise needs, reach out to Alessia & Elia directly:
[email protected]
暂无开放 Issues,或尚未同步最近议题。