EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Recovering Design Tokens from Figma-like UI Layers Using LLM-Guided Schema Synthesis

Haosen Xu, Sarah Liu

Journal of Computing Innovations and Applications · 02.02.2023 · 1 (01) · 39-52

DOI: 10.63575/cia.2023.10104 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Computing Innovations and Applications, online erschienen am 02.02.2023. Verfasst von Haosen Xu und 1 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Design tokens encode a design system's reusable decisions for color, spacing, typography, and component semantics, yet production teams often inherit screens whose layer names, styles, and component nesting are inconsistent. This paper presents SALT, a deterministic layer-analysis and constrained LLM-guided schema-synthesis pipeline for recovering design tokens from Figma-like UI layer JSON and paired high-fidelity screenshots. The method parses vector-style layer trees, extracts style observations, clusters noisy color and dimension values, recovers component groups from frame hierarchy, and emits a Design Tokens Community Group compatible JSON schema. Full experiments were executed on a 300-screen EGFE-compatible benchmark included with this submission. The benchmark contains 9,164 total layers, 6,374 leaf layers, 8,150 color observations, 12,450 spacing observations, 3,281 typography observations, and 2,190 annotated component groups. Six methods were evaluated: raw unique values, screenshot-palette extraction, rounded-value heuristics, k-means clustering, schema generation without semantic naming, and SALT. SALT recovered spacing tokens with F1=0.800, typography tokens with F1=0.909, and component hierarchy with F1=1.000; its color-token F1 was 0.538, while the rounded-16 heuristic reached the highest color-value F1 of 0.645. SALT was the only method that produced nonzero reference-path schema coverage, achieving 0.571, and it generated a compact 22-token schema in 0.244 s on the complete benchmark. The results show that layer-aware semantic synthesis is necessary for usable token schemas, while value-only color clustering remains sensitive to neutral color collisions.

Zitieren

APA

Xu, H., & Liu, S. (2023). Recovering Design Tokens from Figma-like UI Layers Using LLM-Guided Schema Synthesis. Journal of Computing Innovations and Applications, 1(01), 39-52. https://doi.org/10.63575/cia.2023.10104

Vancouver

Xu H, Liu S. Recovering Design Tokens from Figma-like UI Layers Using LLM-Guided Schema Synthesis. Journal of Computing Innovations and Applications. 2023;1(01):39-52. doi:10.63575/cia.2023.10104

BibTeX
@article{Xu2023,
  author = {Xu, Haosen and Liu, Sarah},
  title = {Recovering Design Tokens from Figma-like UI Layers Using LLM-Guided Schema Synthesis},
  journal = {Journal of Computing Innovations and Applications},
  year = {2023},
  volume = {1},
  number = {01},
  pages = {39--52},
  doi = {10.63575/cia.2023.10104}
}
Kostenlos starten →