Memorisely
Design Systems

Building your first design system components

Start with the five components every product needs.

Zander Whitehurst

10 min read

When people start a design system, they often try to build everything at once. A full library, every variant and every edge case. Months later they have a half finished collection and teams still waiting for something usable.

A better approach is to start with five components that appear in almost every product, build them really well and get them into people's hands. I have done it the other way, with a library of sixty components on launch day, most of which nobody used and several of which nobody could find. Five good components would have been far more useful.

Why five is enough to start

Look at almost any screen in any product and you will see the same building blocks. Something to click, something to type into, some text, something to group content and a way to lay it all out.

Get those right and you cover a surprising share of every interface. Teams can start using the system immediately, and you learn from real usage before investing in anything more complex.

Before you build: tokens

Components should be built on tokens from day one. Colours, spacing, radius and type should all come from semantic tokens rather than hard coded values.

.button {
  background: var(--action-primary);
  color: var(--text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
}

This feels like extra work at first. It is the reason you can add a dark theme later without rebuilding everything.

1. Button

The button is the most used interactive component in almost every product. Start with a small set of clear variants:

  • Primary for the main action on a screen
  • Secondary for supporting actions
  • Ghost for low emphasis actions
  • Destructive for actions that delete or remove

Add sizes only if you genuinely need them, and include states for hover, focus, pressed, disabled and loading. Focus styles matter enormously for keyboard users, so make them clearly visible.

2. Input

Text inputs appear in every form, search bar and settings page. A good input component includes the label, the field, optional helper text and an error message, all in one.

Bundling these together is the key. If labels and errors are separate components, people forget them. If they are built in, every form in the product gets them for free.

Label, field, helper text and error ship together, so no form can forget them.

3. Text

A text component sounds almost too simple, but it is one of the most valuable. It applies your type scale consistently and stops people inventing new sizes:

<Text size="body" tone="muted">Last updated two days ago</Text>

Keep the options limited to the sizes and tones in your type scale. Fewer choices means more consistent screens.

4. Card

Cards group related content. A basic card needs a surface colour, padding, radius and an optional border or shadow. That is it.

Resist the urge to build lots of card variants for specific uses. A simple, flexible card that people can compose content inside will serve you far better than ten specialised ones. I once found five card components in a single codebase. Three were identical apart from their names. One had a typo in its name. Nobody knew who made the fifth.

5. Stack

A stack handles layout by placing children in a row or column with consistent spacing between them. It sounds modest, but it removes the need for most custom spacing in a product.

<Stack direction="column" gap="4">
  <Text size="heading">Profile</Text>
  <Input label="Name" />
  <Button>Save changes</Button>
</Stack>

Once teams have a stack, spacing becomes a token choice rather than a guess, and screens start to feel consistent almost by accident.

Build each one properly

For each of the five, aim for the same standard:

  • Uses semantic tokens only
  • Works with keyboard and screen readers
  • Has clear, typed props with sensible defaults
  • Exists in both Figma and code with matching names
  • Has a short description of when to use it and when not to

That last point helps people and AI agents alike. A single sentence saying "use the destructive button only for actions that delete data" prevents a lot of mistakes.

Holding every component to the same short standard keeps the first five genuinely reliable.

What comes next

Once these five are stable and in use, let real demand guide what you build next. Common next steps include checkbox, select, modal, tabs and toast. Add each one when a team actually needs it, not because it appears on a list of components every system should have. We build systems like this from tokens to components in the AI Design Systems Bootcamp.

The first five ship now, and everything else waits until real demand pulls it in.

Start with the button

If five still feels like a lot, start with the button. Build it on tokens, give it four clear variants and all its states, make it fully accessible and match it in Figma and code. Then replace one hard coded button in your product with it. That single swap will teach you more about your system than a month of planning, and it gives you something real to show the team on Friday.

Keep reading

View all
View all

Optimize your AI for better experiences, not AI slop.

View all

AI Prototyping Skills

Prototype with AI using clean UI patterns and guardrails so flows feel product-grade, not generic template slop.

$99

AI UI Motion Skills

Motion and micro-interaction patterns that make AI-built UI feel designed, polished, and trustworthy in real products.

$99

Fix AI Slop Skills

Spot AI slop early and fix type, spacing, and components so your product looks intentional, not like a template.

$99

AI Responsive Design Skills

Responsive layout patterns for rails, sidebars, and breakpoints so AI-generated UI adapts cleanly from narrow to wide.

$99

AI Dark Mode Skills

Dark theme tokens, contrast, and surfaces that keep AI-generated UI readable and product-grade, not flat gray on black.

$99

AI Color Token Skills

Neutral and primary ramps with clear steps so AI palettes stay systematic, not a random set of accent hex codes.

$99
View all