---
title: "Theming the Zalando Design System"
description: "Zalando built theming into its design system by extracting repeated values into semantic design tokens (e.g. `accent` instead of `orange`) and adding component-level tokens that reference global ones, so themes can change a button's padding without redefining global scales."
url: "https://swe.quest/articles/theming-the-zalando-design-system-b14098d887a4b230"
canonical: "https://engineering.zalando.com/posts/2024/05/theming-the-zalando-design-system.html"
source: "Zalando Engineering"
published: "2024-05-13"
difficulty: "medium"
kind: "Case study"
reading_minutes: 20
tags: ["design-systems","frontend","css","mobile"]
---

# Theming the Zalando Design System

A post on [Zalando Engineering](https://swe.quest/sources/zalando.md), published 2024-05-13, 20 min read, Case study. Original: [https://engineering.zalando.com/posts/2024/05/theming-the-zalando-design-system.html](https://engineering.zalando.com/posts/2024/05/theming-the-zalando-design-system.html)

## Summary

Zalando built theming into its design system by extracting repeated values into semantic design tokens (e.g. \`accent\` instead of \`orange\`) and adding component-level tokens that reference global ones, so themes can change a button's padding without redefining global scales. Colour schemes (default, monochrome-dark, monochrome-light) are first-class within each theme to meet contrast requirements on image-derived banner backgrounds, which raises open questions about native dark mode. Tokens live in TOML files processed by Style Dictionary with custom transforms and formats that emit platform-specific artefacts for web, Android and iOS. Each theme is a partial dictionary deep-merged over the base theme. The tokenization process also simplified the design system and improved cross-platform parity.

Written by swe.quest, not by the author.

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

## Topics

- [Design systems](https://swe.quest/tags/design-systems.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [CSS](https://swe.quest/tags/css.md) (Web & mobile)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)

## Prerequisites

- design tokens
- CSS custom properties ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))

## Keywords

Style Dictionary, TOML, Zalando Design System, Material Design, CSS Variables

## Related posts

- [Design Systems @ Replit: Better Tokens](https://swe.quest/articles/design-systems-replit-better-tokens-145fca0668bb5424.md): Replit · 2021-10-26 · Medium · 5 min read · Design systems, CSS, Frontend
  Replit rebuilt the token layer of its RUI design system, the base of a hierarchy running tokens → utilities → components → patterns → design guidance.
- [An Introduction to the Zalando Design System](https://swe.quest/articles/an-introduction-to-the-zalando-design-system-4b3d34eb4aa32f29.md): Zalando Engineering · 2022-07-20 · Medium · 10 min read · Design systems, Frontend, React, CSS
  Zalando's web design system is layered on an extended atomic-design model: design tokens, "electrons" (a restricted CSS grammar like paddingTop\_m), atoms (the only layer that touches CSS), molecules (generic React components) and team-owned organisms.
- [Illuminating dark mode](https://swe.quest/articles/illuminating-dark-mode-f998d746316f5fd8.md): Figma · 2022-07-21 · Medium · 15 min read · Design systems, CSS, Frontend, Refactoring & migrations, Accessibility
  Figma built dark mode by replacing roughly 5,100 build-time PostCSS color variables with runtime CSS custom properties based on a semantic token schema (Type | UI Element | Color role | Prominence | Interaction), so new themes only require reassigning token values.
- [How Thumbtack structures their design system](https://swe.quest/articles/how-thumbtack-structures-their-design-system-88dae4da18cdc3ea.md): Figma · 2023-07-13 · Medium · 8 min read · Design systems, Frontend, React, CSS
  Thumbtack's Thumbprint design system is organized in three layers: design tokens shared by web and native, an atomic CSS library built on the tokens, and accessible React components on top.
- [Unlocking inclusive design: how Primer’s color system is making GitHub.com more inclusive](https://swe.quest/articles/unlocking-inclusive-design-how-primer-s-color-system-is-making-github-com-more-438d95888d234cb3.md): GitHub Engineering · 2023-05-11 · Medium · 6 min read · Accessibility, Design systems, CI/CD, Frontend
  GitHub's Primer design system fixed hundreds of color contrast violations across light and dark modes and all themes by changing its foundational color tokens (Primer Primitives) rather than individual components.

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)
