/design2code

Convert any web design screenshot to clean HTML/CSS code

Primary LanguageTypeScriptMIT LicenseMIT

Design2Code

Welcome to Design2Code, the ultimate web design to HTML/CSS/JS converter! 🚀✨

Overview

Design2Code is an open-source project that converts various web design formats, including sketches, wireframes, Figma, XD, etc., into clean and responsive HTML/CSS/JS code. Just upload your design image, and Design2Code will automatically generate the code for you. It's that simple!

Demo Video

Check out the magic in action! Watch our demo video

design-to-code.mp4

🌐 Hosted App

try the hosted version: Design2Code Live Demo

OpenAI GPT

try as a GPT: GPT

Deployment

Design2Code is built using Next.js. Deploy your own instance of Design2Code with just one click using Vercel. Click the button below to get started:

Deploy with Vercel

If you are using the Vercel hobby plan, update the maxDuration in app/api/code/route.ts to 10 seconds. see this issue

🤝 Contributing

We welcome contributions from the community! If you have ideas, bug fixes, or enhancements, feel free to create a pull request.

📬 Feedback

We value your feedback! Reach out directly on LinkedIn: Mostafa Sadeghi

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute!