CHAPTER 15
Beginner
Design Systems and UI Libraries
Updated: May 16, 2026
35 min read
# CHAPTER 15
Design Systems and UI Libraries
1. Introduction
If you are designing a single mobile app in your bedroom, you can afford to be slightly disorganized. However, if you are hired by Uber, Airbnb, or Google, you are designing alongside 500 other designers, working on thousands of screens simultaneously. If Designer A usesHex #0055FF for a button, and Designer B uses Hex #0056EE, the brand is fractured, and the code base becomes a chaotic mess. Massive enterprise architecture requires a "Single Source of Truth." This is the Design System. In this chapter, we will transition from building isolated screens to engineering a scalable, enterprise-grade Design System in Figma. We will establish global Color Styles, strict Typography variables, and centralize our Master Components into a publishable UI Library.
2. Learning Objectives
By the end of this chapter, you will be able to:- Define a Design System and explain its necessity for large product teams.
- Create and apply global Color Styles (Design Tokens) to UI elements.
- Create global Typography Styles to enforce visual hierarchy consistency.
- Understand how updating a global Style instantly propagates across a massive file.
- Conceptualize how a Figma UI Library is published and shared across a team.
3. What is a Design System?
A Design System is a highly organized, centralized collection of reusable assets (Colors, Fonts, Spacing rules, and Components). It guarantees Consistency. When a new designer is hired at Spotify, they do not invent their own green color. They open the Spotify Design System library, pull the official "Brand Green" token, and apply it. Every designer speaks the exact same visual language.4. Creating Color Styles (Design Tokens)
If you manually type#4F46E5 every time you need a blue button, you are making a mistake. You must save that color as a Style.
-
1.
Draw a rectangle and fill it with your brand color (e.g.,
#4F46E5).
- 2. With the rectangle selected, look at the Fill section on the right panel.
- 3. Click the icon that looks like four tiny dots (Style icon).
-
4.
Click the
+icon to create a new style.
-
5.
Name it logically:
Primary / Brand Blue. Click Create.
5. Creating Typography Styles
Just like colors, you must never manually type "Size 24px, Bold" over and over again. You must define your Typography scale (from Chapter 5) as Global Styles.-
1.
Create a text box with your perfect Heading (
Inter,32px,Bold,120% Line Height).
- 2. Look at the Text section on the right panel.
-
3.
Click the four tiny dots (Style icon), then click the
+.
-
4.
Name it logically:
Heading / H1 - 32px.
Heading / H1. This mathematically guarantees that every single page of the app has the exact same font size and line height.
6. The UI Component Library
In Chapter 9, we created Master Components (Buttons, Cards). In an enterprise environment, these Master Components are not stored on the same page as the design mockups. They are isolated into a massive, dedicated Figma file called the UI Component Library.- *Publishing:* If you are on a paid Figma team plan, you click "Publish Library."
- Figma uploads your colors, fonts, and Master Components to the cloud.
- Any other designer in your company can now open a blank file, click on the Assets panel, and "Subscribe" to your library, instantly giving them access to drag-and-drop the official company buttons into their own work.
7. Diagrams/Visual Suggestions
*Visual Concept: The Ecosystem of a Design System* Draw a central, glowing database labeledThe UI Library (Single Source of Truth).
Inside it, show three folders: Colors, Typography, Master Components.
Draw arrows radiating outward from the central database to three separate laptops.
-
Laptop 1:
Marketing Website Design File
-
Laptop 2:
iOS Mobile App Design File
-
Laptop 3:
Admin Dashboard Design File
8. Best Practices
-
Naming Conventions (The Forward Slash): When naming your Styles, use the forward-slash
/to automatically create organizing folders in Figma. If you name your colorsBrand/Primary,Brand/Secondary, andStatus/Error, Figma will automatically create a neat "Brand" folder and a "Status" folder in your color menu. This is mandatory for keeping massive systems organized!
9. Common Mistakes
-
Naming Colors by their visual color: A junior designer creates a style and names it
Dark Red. A year later, the company rebrands, and the new error color is Bright Orange. The designer updates the style to Orange. Now, the entire team has a color style namedDark Redthat actually paints things Bright Orange! *The Fix:* Name styles by their Function, not their visual appearance. Name itStatus / Error. If it changes from Red to Orange, the functional nameStatus / Errorremains perfectly logical.
10. Mini Project: Build a Micro Design System
Let's build the foundation of an enterprise system.-
1.
Open a blank Figma file. Rename the page in the left panel to
❖ Design System.
-
2.
Colors: Draw 3 squares. Fill them with Brand Blue (
#2563EB), Dark Text (#1F2937), and Light Gray Background (#F3F4F6). Save them as Color Styles namedColor / Primary,Color / Text, andColor / Surface.
-
3.
Typography: Create two text layers. Style the first as a Title (Inter, 24px, Bold), save it as a Style named
Text / H1. Style the second as a Paragraph (Inter, 16px, Regular), save it asText / Body.
-
4.
Component: Draw a Button. Fill it using your new
Color / Primarystyle. Add text using your newText / Bodystyle. Turn the button into a Master Component (Ctrl + Alt + K).
- 5. *You have just built an unbreakable architectural foundation. Every element is now tokenized and scalable!*
11. Practice Exercises
- 1. Explain the catastrophic workflow issues that occur if a team of 10 designers works on a massive application *without* utilizing Global Color Styles or Typography Styles.
- 2. Edit the "Color / Primary" style you created in the Mini Project, changing the HEX code to a bright Green. Observe how the Master Component Button instantly updates its color without you touching it.
12. MCQs with Answers
Question 1
A UI designer creates a global Color Style for a destructive warning button and names the style "Bright Red". Six months later, the company undergoes a massive rebrand, and all warning buttons must now be changed to a muted Orange. The designer updates the style color, but realizes the style name "Bright Red" is now highly confusing. What industry-standard naming convention should the designer have used instead?
Question 2
When organizing hundreds of Color Styles and Typography Styles within the Figma properties panel, which specific character can a designer include in the style name to command Figma to automatically organize the styles into clean, collapsible folders?
13. Interview Questions
- Q: Explain the concept of a "Design System" and why massive tech companies like Google (Material Design) and Apple (HIG) invest millions of dollars into maintaining them as a "Single Source of Truth."
-
Q: You are hired to audit a messy Figma file created by a junior designer. You notice they have manually typed the hex code
#111827onto 400 different text layers. Walk me through the exact steps you would take to refactor this file utilizing Figma Styles.
- Q: Contrast naming a color style by its physical appearance (e.g., "Sky Blue") versus naming it by its semantic function (e.g., "Brand / Primary"). Why is functional naming architecturally superior for long-term project maintenance?
14. FAQs
Q: Do developers use Design Systems? A: Yes! A Design System is not just a Figma file; it is a bridge. When you create a Color Style namedBrand / Primary in Figma, the developers will create a CSS Variable named --brand-primary in their code. If you change the design token, the developers just update the one line of CSS code, and the entire programmed website updates instantly!