Skip to content
Quillyst
All posts

Building a design system that actually lasts

Tokens, primitives and the boring decisions that keep a component library useful years after launch.

Leo Martinez2 min read
Abstract grid of rounded violet, pink and orange tiles on a dark background

Every product team eventually hits the same wall: the interface grows faster than the decisions behind it. Buttons drift, spacing becomes negotiable, and “just this once” turns into a pattern. This article walks through a practical approach that keeps things consistent without slowing anyone down.

Start with tokens, not components

Components are the visible part of a system, but tokens are the foundation. Color, spacing, radius and type scale should exist as named values before a single component is built. When a brand color changes, you change one line — not three hundred.

:root {
  --color-accent: oklch(0.56 0.21 275);
  --radius-card: 1rem;
  --space-section: clamp(3rem, 8vw, 7rem);
}

Naming matters more than values

Prefer semantic names like --surface and --muted over raw ones like --gray-200. Semantic names describe intent, which makes dark mode and theming almost free.

Build a small set of primitives

Resist the urge to build everything at once. A handful of well-designed primitives covers most of an interface:

  • Container — consistent page width and gutters.
  • Section — vertical rhythm between blocks.
  • Button and Badge — the most reused interactive pieces.
  • Card — a predictable surface for grouped content.

A design system is not a project. It is a product serving products — and it needs an owner.

Document the decisions

Code shows what; documentation explains why. A short note next to each component describing when to use it — and when not to — saves hours of review comments later.

Keep it alive

Schedule regular audits, track adoption, and treat breaking changes with the same care as a public API. Systems that are maintained get used; systems that are used get better.

Wrapping up

Start with tokens, keep primitives small, and write down your reasoning. The result is an interface that scales with your team instead of against it.

Related

Keep reading

View all posts

Design Systems · Accessibility

Accessible color palettes with OKLCH

Perceptually uniform color makes contrast predictable. Here is how to build a palette that passes WCAG by design.

Leo Martinez1 min read

Type to search across all articles.