Design System Basics: A Practical Guide

A design system documents reusable choices and components. It can improve consistency, but setup and maintenance take work and do not guarantee faster decisions or higher quality. Start with actual product needs.

The Layers

LayerContentsPurpose
TokensColor, type, spacing, radius, shadow valuesAtomic, semantic values; theming foundation
ComponentsButtons, inputs, modals, cards, navReusable building blocks with defined behaviour
PatternsForms, empty states, navigation, data tablesHow components combine for common UX flows
TemplatesPage layouts, dashboard structuresHigher-level scaffolds
DocumentationUsage rules, props, examples, accessibilityEnables adoption without 1:1 support
GovernanceContribution process, review, versioningKeeps the system trustworthy as it grows

Tokens First

The foundation of every design system is a token layer — named values that everything else references. Common starter set:

  • Color: primitive scales (gray-100 to gray-900, brand-50 to brand-900) and semantic aliases (--bg-surface, --text-primary, --border-default).
  • Type: a scale (xs, sm, base, lg, xl, 2xl...) plus line-height and weight tokens.
  • Spacing: a step scale (4, 8, 12, 16, 24, 32, 48, 64) used for padding, margin, gap.
  • Radius: typically 4-6 values (none, sm, md, lg, full).
  • Shadow: 3-5 elevation steps.
  • Motion: durations and easing curves.

Component Patterns That Work

  • Define variants explicitly — primary, secondary, ghost, danger — not ad hoc styling.
  • Standardise sizes — sm, md, lg — consistent across the component set.
  • Specify states — default, hover, focus, active, disabled, loading — every component, every variant.
  • Build keyboard behavior, visible focus, contrast and appropriate semantics into components. Prefer native HTML; add ARIA only when necessary and correctly supported. Also test composed screens and real content.
  • Document props and examples in code — Storybook or equivalent. A Figma file alone is insufficient.

Avoid Common Mistakes

  • Launching the system before consumers adopt it. Build with one team's real needs, then expand.
  • Token names that encode the value (--color-blue-500). Encode meaning (--color-brand-500).
  • No governance — anyone can add components, no one removes anything. The library balloons and trust collapses.
  • Skipping documentation. Undocumented systems are abandoned systems.

Rolling It Out Without Losing Trust

A design system succeeds on adoption, not on how complete the library looks. A pragmatic rollout:

  1. Start from real usage. Build the handful of components one product team actually needs today, ship them in a real feature, then generalise — don't speculatively design 60 components nobody asked for.
  2. Version and changelog everything. Consumers need to know what changed and whether it breaks them; semver plus release notes keeps trust intact.
  3. Appoint owners. Someone must be able to say no, deprecate duplicates, and keep the surface area small. Ungoverned libraries balloon and collapse.
  4. Document in code, not just Figma. A live component playground with props and examples is what makes engineers reach for the system instead of rebuilding.
  5. Measure adoption — track which teams use the tokens and components, and treat low uptake as a signal to fix the system, not to mandate it.

Try It Yourself

Build a token palette with DesignKit's color and gradient tools.

Color Palette Extractor →

Frequently Asked Questions

A structured, reusable set of design decisions packaged with docs and code so teams build consistent products.
Atomic named values (colors, sizes, spacings) that everything references. Foundation for theming and consistency.
A system helps when repeated decisions need consistency. Even a solo project can benefit from a small set of tokens and documented components.
Both. Design source of truth + code source of truth, kept in sync via tokens.
Start with reusable tokens, the components the project needs and examples of their use. Expand based on actual adoption rather than a prescribed component count.