DOne: Decoupling Structure and Rendering for High-Fidelity Design-to-Code Generation

Xinhao Huang, Jinke Yu, Wenhao Xu, Zeyi Wen, Ying Zhou +3 more
3/12/2026
cs.CVcs.SE

No confident code implementation found for this paper.

Abstract

While Vision Language Models (VLMs) have shown promise in Design-to-Code generation, they suffer from a "holistic bottleneck-failing to reconcile high-level structural hierarchy with fine-grained visual details, often resulting in layout distortions or generic placeholders. To bridge this gap, we propose DOne, an end-to-end framework that decouples structure understanding from element rendering.

Show full abstract

DOne introduces (1) a learned layout segmentation module to decompose complex designs, avoiding the limitations of heuristic cropping; (2) a specialized hybrid element retriever to handle the extreme aspect ratios and densities of UI components; and (3) a schema-guided generation paradigm that bridges layout and code. To rigorously assess performance, we introduce HiFi2Code, a benchmark featuring significantly higher layout complexity than existing datasets. Extensive evaluations on the HiFi2Code demonstrate that DOne outperforms exiting methods in both high-level visual similarity (e.g., over 10% in GPT Score) and fine-grained element alignment. Human evaluations confirm a 3 times productivity gain with higher visual fidelity.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2026done,
  title  = {DOne: Decoupling Structure and Rendering for High-Fidelity Design-to-Code Generation},
  author = {Xinhao Huang and Jinke Yu and Wenhao Xu and Zeyi Wen and Ying Zhou and Junzhuo Liu and Junhao Ji and Zulong Chen},
  year   = {2026},
  eprint = {2604.01226},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.01226v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.01226.svg)](https://codeofpaper.com/paper/2604.01226)

Discussion