Saved in:
Bibliographic Details
Main Authors: Chen, Yongxi, Chen, Lei
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.04012
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909890573762560
author Chen, Yongxi
Chen, Lei
author_facet Chen, Yongxi
Chen, Lei
contents Design-to-code generation has emerged as a promising approach to bridge the gap between design prototypes and deployable frontend code. However, existing methods often suffer from structural inconsistencies, asset misalignment, and limited production readiness. This paper presents PSD2Code, a novel multi-modal approach that leverages PSD file parsing and asset alignment to generate production-ready React+SCSS code. Our method introduces a ParseAlignGenerate pipeline that extracts hierarchical structures, layer properties, and metadata from PSD files, providing large language models with precise spatial relationships and semantic groupings for frontend code generation. The system employs a constraint-based alignment strategy that ensures consistency between generated elements and design resources, while a structured prompt construction enhances controllability and code quality. Comprehensive evaluation demonstrates significant improvements over existing methods across multiple metrics including code similarity, visual fidelity, and production readiness. The method exhibits strong model independence across different large language models, validating the effectiveness of integrating structured design information with multimodal large language models for industrial-grade code generation, marking an important step toward design-driven automated frontend development.
format Preprint
id arxiv_https___arxiv_org_abs_2511_04012
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle PSD2Code: Automated Front-End Code Generation from Design Files via Multimodal Large Language Models
Chen, Yongxi
Chen, Lei
Software Engineering
Design-to-code generation has emerged as a promising approach to bridge the gap between design prototypes and deployable frontend code. However, existing methods often suffer from structural inconsistencies, asset misalignment, and limited production readiness. This paper presents PSD2Code, a novel multi-modal approach that leverages PSD file parsing and asset alignment to generate production-ready React+SCSS code. Our method introduces a ParseAlignGenerate pipeline that extracts hierarchical structures, layer properties, and metadata from PSD files, providing large language models with precise spatial relationships and semantic groupings for frontend code generation. The system employs a constraint-based alignment strategy that ensures consistency between generated elements and design resources, while a structured prompt construction enhances controllability and code quality. Comprehensive evaluation demonstrates significant improvements over existing methods across multiple metrics including code similarity, visual fidelity, and production readiness. The method exhibits strong model independence across different large language models, validating the effectiveness of integrating structured design information with multimodal large language models for industrial-grade code generation, marking an important step toward design-driven automated frontend development.
title PSD2Code: Automated Front-End Code Generation from Design Files via Multimodal Large Language Models
topic Software Engineering
url https://arxiv.org/abs/2511.04012