Prototype2Code: End-to-end Front-end Code Generation from UI Design Prototypes
Shuhong Xiao, Yunnong Chen, Jiazhi Li, Liuqing Chen, Lingyun Sun,, Tingting Zhou

TL;DR
Prototype2Code is an end-to-end front-end code generation system that improves robustness, readability, and responsiveness of generated UI code by integrating design linting, hierarchical optimization, and flexbox support, validated through quantitative metrics and user studies.
Contribution
It introduces Prototype2Code, a novel approach that enhances code quality and robustness in UI-to-code generation by incorporating design linting and layout optimization.
Findings
Prototype2Code achieves higher visual similarity to prototypes than competitors.
Generated code is more readable and maintainable according to user evaluations.
Prototype2Code outperforms existing methods in robustness and responsiveness.
Abstract
UI-to-code technology has streamlined the front-end development process, reducing repetitive tasks for engineers. prior research mainly use design prototypes as inputs, with the effectiveness of the generated code heavily dependent on these prototypes' quality, leading to compromised robustness. Moreover, these approaches also exhibit shortcomings in code quality, including issues such as disorganized UI structures and the inability to support responsive layouts. To address these challenges, we introduce Prototype2Code, which achieves end-to-end front-end code generation with business demands. For Prototype2Code, we incorporate design linting into the workflow, addressing the detection of fragmented elements and perceptual groups, enhancing the robustness of the generated outcomes. By optimizing the hierarchical structure and intelligently recognizing UI element types, Prototype2Code…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEmbedded Systems Design Techniques · Real-time simulation and control systems · Software Testing and Debugging Techniques
