Design systems that earn their keep

A design system isn't a Figma flex. It's how you ship faster and look like one company instead of five. How I build ones that pay for themselves.

Prabir Singh, profile photoPrabir Singh·
·Updated ·10 min read
Editorial illustration: Reusable geometric printing blocks produce three consistent interface compositions.
In this article
  1. 01What a design system actually buys you
  2. 02The real job: making the wrong choice impossible
  3. 03Tokens are the single source of truth
  4. 04Keep design and code in sync
  5. 05When a startup needs one, and when it's too early
  6. 06The sales angle nobody connects
  7. 07Give one component an awkward afternoon
  8. 08Frequently asked questions
  9. 09Build the boring part once

Open your app and click through five screens. Go on, I'll wait.

The login button has a different corner radius than the dashboard button. The blue on the pricing page sits one shade off the blue in the nav. One form uses 16px labels, the next one 14px. Nobody decided any of this. It just piled up, one reasonable shortcut at a time.

That's the flinch: a product that looks like five different apps wearing the same logo. Every screen reinvented the button because whoever built it couldn't find the last one. Multiply that by a year of shipping and you have a codebase where nothing agrees with anything.

A design system fixes the look. It also does the thing founders underrate. It makes every screen you build next faster. That second part is the one worth paying for.

What a design system actually buys you

Not a trophy. Not a 40-page file you flash at investors. Two things you can feel in the calendar: speed and consistency.

Speed, because the next feature stops starting from zero. Your team reaches for a button that already exists, already handles focus states, already matches the brand. Consistency, because there's one button, one blue, one spacing scale, and every screen drinks from the same well. Nielsen Norman Group's primer lands on the same pair: faster replication of work and a product that looks like one thing.

Here's the split most people don't feel until they've lived on both sides of it.

Without a systemWith one
New screenRebuild the button, guess the spacingAssemble from parts that already exist
Brand tweakHunt every hardcoded hexChange one token, it ships everywhere
Dark modeA second stylesheet to babysitThe same tokens with different values
New hireReverse-engineers your choicesReads the system and starts shipping
The productFive apps in a trench coatOne product, one voice

The system is a multiplier. You pay once, and every future screen collects the interest.

The real job: making the wrong choice impossible

Here's the reframe that took me a while to see. A design system is not a collection of nice components. It's a list of decisions nobody on the team ever has to make again.

If a developer can type any hex code, eventually they will. Not out of carelessness. Out of a deadline. Six months later you have forty shades of "brand red" and no idea which one is real. Good taste applied twelve times still drifts. A system applied once doesn't.

So the question to ask about any system isn't "is it beautiful?" It's "how hard is it to do the wrong thing?" If the answer is "easy," you have a style guide, not a system.

Tokens are the single source of truth

A token is a named decision. Not #2563eb scattered across 200 files. One name, color.brand.primary, that means this blue everywhere it shows up. The W3C Design Tokens Community Group exists precisely to standardise how these decisions travel between tools.

Name the purpose, not the paint

A row that reads bg-primary instead of bg-blue-500 means a theme change is one edit, not a find-and-replace across every app. On a racket sports platform that rule held across every app, web and native, and dark mode came nearly free because of it.

Dark mode is a second set of values

Dark mode is not a second stylesheet. It's the same tokens with different values, flipped by a class on the root. On IT Origin the palette lives in OKLCH, which is perceptually even, so the brand red feels like the same red in light and dark instead of drifting muddy or neon.

One variable can carry a whole brand

On the Garden Vareli kiosk, the brand purple is a single CSS variable that buttons, focus rings and gradients all reference. Change one line and twelve pages shift together. Small build, same principle.

Keep design and code in sync

Here's where most systems quietly rot. The Figma file says one thing. The code says another. They drift apart inside a month, and now you have two sources of truth, which is the same as having none.

Tokens live in code

My fix: the tokens live in code, typed and shared. I'm a TypeScript-everywhere person, so the tokens are TypeScript too, and the compiler enforces the system instead of a Slack reminder nobody reads.

export const tokens = {
  color: {
    brand: '#2563eb',
    ink: '#0f172a',
    muted: '#64748b',
  },
  space: [0, 4, 8, 12, 16, 24, 32, 48],
  radius: { sm: 6, md: 10, lg: 16 },
} as const;
 
type Space = (typeof tokens.space)[number]; // 0 | 4 | 8 | 12 | 16 ...

A value declared as Space now rejects 7. Components must actually use that type for the restriction to apply. The system stops being a polite suggestion in a design doc and becomes a type error at 2pm instead of a visual bug in production. Design picks the values. Typed component APIs help enforce them; arbitrary CSS still needs review. More on that bet in why I don't ship without TypeScript.

A green check can still lie

One honest lesson from the shared UI package on that racket sports platform. A shared component that touched React context needed a "use client"; line, or the admin app's production build crashed. The type check passed every time, because the type check never runs a real build. So now shared components get verified with an actual production build, not just a green tsc. A system you can't trust at deploy time isn't saving you anything.

When a startup needs one, and when it's too early

Here's where I part ways with a lot of design-system enthusiasm. Most pre-launch startups don't need one yet.

Four screens and you're still finding out whether anyone wants the thing? A formal system is premature. You'd be sanding the frame before you know what the painting is. Build the product first and let the patterns show themselves.

The signals that it's time

  • You catch yourself copy-pasting a component and tweaking it.
  • A second engineer joins and starts guessing your patterns.
  • "Make the CTA green" turns into a two-day hunt.
  • Light mode and dark mode start disagreeing about what "muted" means.

Any one of those is the moment. Not the sprint before it.

Start smaller than feels respectable

Color, spacing, type scale, radius, and your five most-used components cover most of any screen. Borrow solid primitives instead of hand-rolling them; several of my builds start on shadcn/ui and put the brand into tokens on top. You grow the system when a real repeated need appears, not to fill out a checklist someone posted online.

The sales angle nobody connects

I spent twenty years selling capital market products to buyers who read the fine print, long before I wrote a line of code. So I read software the way a buyer does. And a buyer reads consistency as competence.

A prospect can't audit your architecture. They can't see your test coverage or your error handling. What they see is the surface. When every screen agrees, when the spacing breathes the same way and the buttons behave the same way, some quiet part of their brain files you under "these people have their act together." When the screens fight each other, that same part whispers, "if the visible stuff is this sloppy, what about the stuff I can't see?"

Consistency reads as competence. Competence converts. That's the same reason I argue you should build for the buyer, not just the user.

Give one component an awkward afternoon

Pick a form field, not the prettiest card in the library. Put it in a narrow mobile screen, a dense dashboard and a dark dialog. Try a long label, an empty value, a validation error, keyboard focus and a disabled state.

The exercise has a concrete outcome: a small state matrix that says what is shared and what is intentionally different. If you fix the error treatment once and all three screens improve, the system is earning its keep. If each screen needs another override, the abstraction may be hiding differences rather than solving them.

Use meaning as well as colour. A red border alone does not tell everyone what went wrong; add an associated error message. W3C's explanation of using colour is a useful reference for that review.

Typed tokens can constrain values passed through typed APIs. They do not automatically police every CSS declaration, guarantee contrast or make a control keyboard-accessible. That needs implementation and testing. The IT Origin case study shows the wider system around the components; branding explains which decisions should stay recognisable across them.

Frequently asked questions

Is a design system too early for my MVP?

Usually, yes. If you're still chasing product-market fit with a handful of screens, build the product and let the patterns surface. The system starts earning its keep once you're repeating yourself or adding people, not before.

Figma first or code first?

Design decides the values, usually in Figma. Code is where they become real and enforceable, because code is what ships to users. If I have to name one home for the source of truth, it's code, and Figma stays in sync with the tokens rather than the other way round.

Who maintains it once it exists?

Whoever ships UI. A system that needs a dedicated committee dies of its own overhead. Keep it small enough that adding a component is a ten-minute pull request, and it stays alive because using it is easier than working around it.

How big does it need to be to start?

Smaller than you think. Tokens for color, spacing, type and radius, plus your most-used components, cover the bulk of the product. Grow it when a real repeated need shows up.

Do I need a separate design system for web and mobile?

Not separate decisions, just separate renderers. React Native doesn't render a <div>, so native apps need their own primitives, and those primitives can still read the same tokens. One visual language, two sets of parts.

Build the boring part once

A design system is the least glamorous advantage you'll ever buy. Nobody has ever tweeted about a spacing scale. And yet every fast release, every on-brand screen, every new hire who ships in their first week traces straight back to it. Put the tokens in code, make the wrong choice hard, and let the compiler hold the line so you don't have to.

If you want one built that pays for itself instead of gathering dust in a Figma tab, here's how I do it. Or just tell me what you're building and I'll tell you honestly whether you need one yet.

Was this useful?

No account needed. One like per browser; click again to undo.

ShareXLinkedInFacebook
Prabir Singh, profile photo

Prabir Singh

Full-stack engineer in Mumbai. Twenty years in sales taught me why people buy; seven years of code taught me how to build what they'll pay for. I still read error messages the way I once read objections: as the most honest feedback of the day. More about me or start a project.

Keep reading