Skills / UI design / Components and design systems

UI design, lesson 2 of 8

Components and design systems

Real products have hundreds of screens. Designing each button and card from scratch on every screen leads to dozens of slightly different versions. Professional teams use components and design systems instead.

Components are reusable interface parts: buttons, inputs, cards, navigation bars, dialogs. In Figma you create a main component once, then use instances of it everywhere. Change the main component and every instance updates.

Variants handle the different versions of one component: a button can be primary, secondary or destructive; small or large; normal, hovered, pressed, disabled or loading. Design every state, not just the normal one. Developers need to know what a disabled button and a loading button look like.

Styles and tokens store the basic decisions: colours, text styles, spacing, corner radius, shadows. Instead of typing a hex code, you use a named style such as "Primary/600" or "Text/Body". Change the style, and the whole design updates. Developers increasingly use the same names, called design tokens, in code.

A design system is the whole package: tokens, components, patterns (how to lay out a form, how to show an empty state) and written guidance on when to use what.

You do not always need to invent one. Established systems such as Google's Material Design, or Apple's Human Interface Guidelines, give tested patterns. Many projects start from one and adapt it to the brand.

Start small: colours, type styles, spacing, buttons, inputs and cards cover most of a simple app. Grow the system only when real screens need something new.

Try it: In Figma (free), create a button component with three variants: primary, secondary and disabled. Then place several instances on a frame and change the main component to see them update.

Check yourself

1. What happens to instances when you change a main component in Figma?

2. Why design every state of a button, such as disabled and loading?

3. What is a design token?