Design System Guide

Atomic Design Hierarchy

LevelDescriptionExamples
1. AtomsSmallest UI elements, single purposeButton, Input, Icon, Label, Color
2. MoleculesSimple groups of atomsSearch bar (input + button), Form field (label + input + error)
3. OrganismsComplex UI sectionsHeader, Product card, Comment thread
4. TemplatesPage-level structureBlog post layout, Dashboard layout
5. PagesInstances with real contentActual rendered product page

Design Token Examples

/* Design Tokens — CSS Custom Properties */
:root {
  /* Color tokens */
  --color-primary-500: #6c63ff;
  --color-primary-600: #5b52e8;
  --color-neutral-0:   #ffffff;
  --color-neutral-900: #0f1117;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-4: 16px;
  --space-8: 32px;
  --space-16: 64px;

  /* Typography */
  --font-size-sm:   0.875rem;  /* 14px */
  --font-size-base: 1rem;      /* 16px */
  --font-size-lg:   1.125rem;  /* 18px */
  --font-size-xl:   1.25rem;   /* 20px */
  --font-size-2xl:  1.5rem;    /* 24px */

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.24);
}

Popular Component Libraries

LibraryFrameworkStyle ApproachBest For
shadcn/uiReactCopy-paste, TailwindCustom design systems
Radix UIReactHeadless (unstyled)Accessible primitives
MUI (Material UI)ReactMaterial DesignEnterprise, rapid dev
Ant DesignReactOpinionated, richAdmin dashboards, B2B
VuetifyVueMaterial DesignVue Material apps
Element PlusVue 3Clean, customizableChinese enterprise apps
Tailwind UIAnyTailwind CSSMarketing, landing pages

Design System Checklist