---
title: "LLM powered migration of UI component libraries"
description: "Zalando's Partner Tech team migrated 15 B2B applications between two in-house UI component libraries using GPT-4o, after five hackathon iterations showed that accuracy came from combining generated component interfaces, manually verified attribute mappings (e.g. old \"medium\" button maps to new \"large\") and worked examples in the prompt."
url: "https://swe.quest/articles/llm-powered-migration-of-ui-component-libraries-8df39cf5988787fc"
canonical: "https://engineering.zalando.com/posts/2025/02/llm-migration-ui-component-libraries.html"
source: "Zalando Engineering"
published: "2025-02-19"
difficulty: "medium"
kind: "Case study"
reading_minutes: 14
tags: ["ai-coding","refactoring","llms","design-systems","frontend"]
---

# LLM powered migration of UI component libraries

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2025-02-19, 14 min read, Case study. Original: [https://engineering.zalando.com/posts/2025/02/llm-migration-ui-component-libraries.html](https://engineering.zalando.com/posts/2025/02/llm-migration-ui-component-libraries.html)

## Summary

Zalando's Partner Tech team migrated 15 B2B applications between two in-house UI component libraries using GPT-4o, after five hackathon iterations showed that accuracy came from combining generated component interfaces, manually verified attribute mappings (e.g. old "medium" button maps to new "large") and worked examples in the prompt. The resulting Python tool, built on the llm library's conversation API, used temperature 0, a "continue" prompt for truncated output, tagged output formatting, component groups capped at 40-50K context tokens, prompt-caching-friendly ordering, and LLM-generated regression tests. Migration reached roughly 90% accuracy at under $40 per repository, and the LLM handled edge cases such as aliased components that codemods would need explicit code for.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Design systems](https://swe.quest/tags/design-systems.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- LLM prompting basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- React component libraries ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- codemods

## Keywords

GPT-4o, Zalando, continue.dev, llm (Python library), prompt caching, codemods

## Related posts

- [Content Creation Copilot - AI-assisted product onboarding](https://swe.quest/articles/content-creation-copilot-ai-assisted-product-onboarding-e0913f2c35b53e3c.md): Zalando Engineering · 2024-09-17 · Medium · 7 min read · LLMs, Product engineering, E-commerce, System design
  Zalando built a copilot that pre-fills product attributes during content onboarding by sending product image URLs and generated prompts to OpenAI GPT models.
- [Palette: teaching a small model to build decks in your design language](https://swe.quest/articles/palette-teaching-a-small-model-to-build-decks-in-your-design-language-51907d490a9378a1.md): Hugging Face · 2026-11-03 · Medium · 9 min read · Model training, LLMs, Evaluation
  Palette fine-tunes a 20B open-weight model with a single LoRA adapter to generate slide decks in a specific design language (IBM Design Language), splitting the work into a designer role that writes a structured JSON brief and a coder role that writes per-slide pptxgenjs code in parallel (about 6–7× faster).
- [Balancing Old Tricks with New Feats: AI-Powered Conversion From Enzyme to React Testing Library at Slack](https://swe.quest/articles/balancing-old-tricks-with-new-feats-ai-powered-conversion-from-enzyme-to-react-0b1af45f56ad7d09.md): Slack Engineering · 2024-05-22 · Medium · 15 min read · Testing, AI for coding, Refactoring & migrations, React, LLMs
  Slack converted over 15,000 Enzyme tests to React Testing Library ahead of its React 18 upgrade by combining AST codemods with an LLM (Claude 2.1).
- [How Coinbase used Code Connect to guide agents and shrink token costs](https://swe.quest/articles/how-coinbase-used-code-connect-to-guide-agents-and-shrink-token-costs-b8a9afa8129ad3ba.md): Figma · 2026-09-02 · Easy · 6 min read · Design systems, AI for coding, AI agents, Evaluation
  Coinbase's design system team mapped every Coinbase Design System component to its code counterpart with Figma Code Connect.
- [Building LLMs for Code Repair](https://swe.quest/articles/building-llms-for-code-repair-56ef089519b9fe77.md): Replit · 2024-04-02 · Hard · 14 min read · Model training, AI for coding, LLMs, Evaluation, Data pipelines
  Replit finetuned a 7B code model (DeepSeek-Coder-Instruct-v1.5) to repair Python errors flagged by LSP diagnostics.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
