design2code  by mostafasadeghi97

Web design screenshot to HTML/CSS converter

created 1 year ago
650 stars

Top 52.3% on sourcepulse

GitHubView on GitHub
Project Summary

Design2Code is an open-source tool that automatically converts web design screenshots (sketches, wireframes, Figma, XD) into responsive HTML, CSS, and JavaScript code. It aims to streamline the front-end development workflow by automating the translation of visual designs into functional code, benefiting web designers and developers.

How It Works

The project leverages AI, specifically OpenAI's GPT models, to interpret design images and generate corresponding code. Users upload a design file, and the system processes it to produce clean, structured front-end code, simplifying the transition from design mockups to implementation.

Quick Start & Requirements

  • Hosted App: Design2Code Live Demo
  • Deployment: One-click deployment via Vercel.
  • Prerequisites: For self-hosting, a Next.js environment is required. For the hosted version, an OpenAI API key may be necessary depending on usage. Users on Vercel's hobby plan may need to adjust maxDuration in app/api/code/route.ts.

Highlighted Details

  • Converts various design formats including sketches, wireframes, Figma, and XD.
  • Generates responsive HTML, CSS, and JavaScript code.
  • Offers a live demo and a GPT-based version.
  • Deployable via Vercel with a one-click option.

Maintenance & Community

The project is maintained by Mostafa Sadeghi. Community contributions are welcomed via pull requests. Feedback can be provided via LinkedIn.

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: Permissive for commercial use and integration with closed-source projects.

Limitations & Caveats

The accuracy and quality of the generated code are dependent on the AI model's interpretation of the input design. Users on Vercel's hobby plan may need to manually adjust configuration settings for optimal performance.

Health Check
Last commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
19 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.