code q&a
Resources About
Question:

What is a design system?

A design system is the set of shared primitives that everything in a project gets built from. An interior designer might pick one color palette, a couple of wood finishes and one style of door handle for a whole house. An app’s design system does the same thing with colors, fonts, spacing, buttons and forms, so the “Save” button on the settings page looks exactly like the one on the checkout page.

Most design systems come with a component library of ready-made buttons, forms, cards and menus, usually built in code with something like React. They also have design tokens, which are named values like color-primary or spacing-md that set the colors, font sizes and spacing. On top of that there are guidelines that explain when to use which piece. Designers usually keep matching versions of the components in Figma so design and code stay in sync.

Here’s what using one looks like for a developer:

<Button variant="primary">Save</Button>

The developer picks a variant and the design system supplies the color, padding and font, so nobody writes CSS for that button. Teams often build their design system on top of Tailwind or plain CSS. Tailwind gives you low-level building blocks. A design system sits a layer above and decides what gets built with them.

Google’s Material Design launched in 2014 and is probably the best-known design system. Other well-known ones are Apple’s Human Interface Guidelines, IBM’s Carbon and Shopify’s Polaris. Bootstrap is a CSS framework that works like a ready-made design system you can adopt.

I’ve used Bootstrap for a long time but the first time I remember really thinking about design systems was when Google started marketing Material Design. Every professional designer I’ve worked with over the past decade has worked within a design system. What I like most about a design system is that it puts a constraint on the design. Teams without one end up with six pages and six slightly different looks because every developer picks their own styling for whatever component they’re working on.

You might also like