---
title: "The making of the Figma Pattern Library"
description: "Figma rebuilt its fragmented internal design system as the Figma Pattern Library (FPL) ahead of the UI3 redesign, with a small team of designers and engineers working in a paired style."
url: "https://swe.quest/articles/the-making-of-the-figma-pattern-library-500fd6e5ca81c90e"
canonical: "https://www.figma.com/blog/figma-pattern-library/"
source: "Figma"
published: "2024-11-21"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["design-systems","frontend","accessibility"]
---

# The making of the Figma Pattern Library

A post on [Figma](https://swe.quest/sources/figma.md), published 2024-11-21, 9 min read, Case study. Original: [https://www.figma.com/blog/figma-pattern-library/](https://www.figma.com/blog/figma-pattern-library/)

## Summary

Figma rebuilt its fragmented internal design system as the Figma Pattern Library (FPL) ahead of the UI3 redesign, with a small team of designers and engineers working in a paired style. Color tokens moved out of a Google Sheet into Figma variables: primitive color ramps are aliased by semantic variables that have modes for light/dark themes and for each product. A GitHub Action uses the REST API to open pull requests that sync published variable changes into code tokens. Every component must have Code Connect support before it counts as done, which maps design components to code even when their structures differ. After five months the library had 680+ tokens and 22 component sets with 670+ variants.

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)
- [Accessibility](https://swe.quest/tags/accessibility.md) (Web & mobile)

## Prerequisites

- design tokens
- Figma components

## Keywords

Figma Pattern Library, Figma variables, Code Connect, Dev Mode, Figma REST API, GitHub Actions, UI3

## Related posts

- [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.
- [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.
- [A tale of two parameter architectures—and how we unified them](https://swe.quest/articles/a-tale-of-two-parameter-architectures-and-how-we-unified-them-9ac87b8fbe7bae01.md): Figma · 2025-07-29 · Medium · 11 min read · Design systems, System design, Refactoring & migrations
  Figma replaced the separate architectures behind component properties (scoped, layer-level parameters) and variables (global, library-level parameters) with one parametrization system.
- [Design system annotations, part 2: Advanced methods of annotating components](https://swe.quest/articles/design-system-annotations-part-2-advanced-methods-of-annotating-components-10641335427d3115.md): GitHub Engineering · 2025-05-09 · Medium · 9 min read · Design systems, Accessibility, Frontend
  Design system teams can build their own "Preset annotations": Figma annotation components that carry accessibility details not conveyed visually, in component properties, or in code.
- [Theming the Zalando Design System](https://swe.quest/articles/theming-the-zalando-design-system-b14098d887a4b230.md): Zalando Engineering · 2024-05-13 · Medium · 20 min read · Design systems, Frontend, CSS, Mobile
  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.

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)
