mostafasadeghi97 / design2code

Convert any web design screenshot to clean HTML/CSS code
https://design2code.dev
MIT License
583 stars 98 forks source link
ai code-generation coding-assistant design-to-code gpt4 openai vision

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

https://github.com/mostafasadeghi97/design2code/assets/41698808/d04b95bb-d4cc-46dc-818a-3f251d8ca0f6

🌐 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!