---
protocol: uifino/design-md@2.0
name: "shadcn/ui Design System"
slug: "ui.shadcn.com"
url: "https://ui.shadcn.com"
platform: "website"
category: "DevTools"
fit_for: ["Design Systems", "Admin Dashboards", "SaaS Workbenches", "Component Docs"]
avoid_for: ["Festive Promos", "Cartoon Games", "Maximalist Art Sites"]
typography:
  display: "Geist"
  open_alternative: "Geist + Geist Mono"
  body: "Geist"
  mono: "Geist Mono"
  headline_tracking: "-0.05em"
tokens:
  default_radius: "10px"
  radius_ladder: ["6px", "10px", "16px", "9999px"]
  spacing_px: [4, 8, 12, 16, 24, 32, 48, 64]
colors:
  light:
    canvas: "#FFFFFF"
    surface: "#FAFAFA"
    elevated: "#F5F5F5"
    border: "#E5E5E5"
    ink: "#0A0A0A"
    muted: "#525252"
    accent: "#171717"
    accent_foreground: "#FAFAFA"
  dark:
    canvas: "#0A0A0A"
    surface: "#121212"
    elevated: "#171717"
    border: "#262626"
    ink: "#FAFAFA"
    muted: "#A3A3A3"
    accent: "#FAFAFA"
    accent_foreground: "#171717"
---

# shadcn/ui — DESIGN.md Protocol

## 1. Visual Direction & Fit
Zero-hue neutral monochrome system (#FFFFFF, #F5F5F5, #0A0A0A) showcasing dense, live-rendered forms, ledgers, and dashboards inside shadowless 1px #E5E5E5 containers.

- **Best Suited For**: Design Systems · Admin Dashboards · SaaS Workbenches · Component Docs
- **Avoid Using For**: Festive Promos · Cartoon Games · Maximalist Art Sites

## 2. Surface & Color Hierarchy
- **Dark Mode**: Canvas `#0A0A0A` · Surface `#121212` · Border `1px solid #262626` · Ink `#FAFAFA` · Accent `#FAFAFA`
- **Light Mode**: Canvas `#FFFFFF` · Surface `#FAFAFA` · Border `1px solid #E5E5E5` · Ink `#0A0A0A` · Accent `#171717`

## 3. Typography, Geometry & Spacing
- **Display / Body**: `Geist` (Open-source alternative: `Geist + Geist Mono`), tracking `-0.05em`.
- **Monospace**: `Geist Mono` with `font-variant-numeric: tabular-nums`.
- **Radius & Rhythm**: Default radius `10px` (ladder: 6px, 10px, 16px, 9999px), spacing `4px · 8px · 12px · 16px · 24px · 32px · 48px · 64px`.

## 4. Measured Live DOM Audit

### Measured Color Area Share
| Role | CSS Variable | Hex | Share |
| :--- | :--- | :--- | :--- |
| Pure White Canvas | `--shadcn-background` | `#FFFFFF` | 61% |
| Muted Control Fill | `--shadcn-muted` | `#F5F5F5` | 35% |
| Hairline Card Border | `--shadcn-border` | `#E5E5E5` | 1.5% |
| Primary Foreground Ink | `--shadcn-foreground` | `#0A0A0A` | 1% |
| Primary Action Solid | `--shadcn-primary` | `#171717` | 0.5% |
| Muted Foreground Copy | `--shadcn-muted-fg` | `#737373` | 0.5% |
| Chart & Disabled Neutral | `--shadcn-neutral-300` | `#D4D4D4` | 0.5% |

### Measured Typography & Free Open-Source Alternatives
| Level | Detected Font | Free Alternative | Size / Weight / Line-Height / Tracking |
| :--- | :--- | :--- | :--- |
| H1 Hero | Geist | `Geist` | 48px · 600 · 52.8px (1.10) · -2.4px (-0.05em) |
| H2 Docs Heading | Geist | `Geist` | 30px · 600 · 36px (1.20) · -0.75px (-0.025em) |
| Body Copy | Geist | `Geist` | 16px · 400 · 24px (1.50) · 0em |
| Code & CLI | Geist Mono | `Geist Mono` | 14px · 400 · 21px (1.50) · 0em |

### Component Geometry & Surface Physics (Container Max Width: `1400px`)
- **Primary Pill CTA**: radius `9999px` · border `1px solid #171717` · shadow `none` · height: 36px · padding: 0 16px
- **Component Specimen Card**: radius `16px` · border `1px solid #E5E5E5` · shadow `none` · background: #FFFFFF · padding: 24px
- **Soft Filled Input Slot**: radius `10px` · border `1px solid transparent` · shadow `none` · height: 36px · background: #F5F5F5

### Interactive Hover Transitions
- **Solid Black Primary CTA**: Rest (`#171717` / border `#171717` / text `#FAFAFA`) → Hover (`#262626` / border `#262626` / text `#FAFAFA`) · `background-color 150ms cubic-bezier(0.4, 0, 0.2, 1)`
- **Neutral Secondary Pill**: Rest (`#F5F5F5` / border `#F5F5F5` / text `#171717`) → Hover (`#EAEAEA` / border `#E5E5E5` / text `#0A0A0A`) · `background-color 150ms ease`
- **Interactive Color Swatch**: Rest (`#F5F5F5` / border `#E5E5E5` / text `#525252`) → Hover (`#EAEAEA` / border `#A3A3A3` / text `#0A0A0A`) · `transform 150ms ease, border-color 150ms ease`

## 5. Multi-Page Section Anatomy

### Page: Home (`/`)
- **01 Borderless Search Navbar** (Search Topbar [0%–3.4%]): 64px borderless header with 8 text links left, #F5F5F5 search pill, GitHub count, theme toggle, and black + New button right.
- **02 Centered Manifesto Hero** (Centered + 2 CTA [3.38%–22.2%]): 48px Geist 600 (-2.4px tracking) centered headline above solid #000000 Get Started and #F5F5F5 View Components pills.
- **03 4-Col Live Component Bento** (4-Col Card Bento [22.19%–94.9%]): 4-column masonry of 1px #E5E5E5 bordered monochrome cards showcasing live buttons, bar charts, payout sliders, and QR pairing.
- **04 Single-Line Attribution** (1-Line Attribution [94.93%–100.0%]): Minimal single-line footer crediting shadcn, Vercel, and the GitHub repository.

### Page: Docs (`/docs`)
- **01 Global Search Topbar** (Search Topbar [0%–2.6%]): Consistent 64px borderless white navigation bar.
- **02 3-Pane Open-Code Docs** (3-Col Docs Shell [2.65%–55.0%]): Left component nav tree, center 30px Geist editorial column with Copy Page pill, and right sticky TOC + deploy callout.
- **03 Principles & Pager Bar** (Prose + Pager [55%–100.0%]): Bulleted breakdown of flat-file schema distribution and AI-readiness ending with pill prev/next pagers.

### Page: Blocks (`/blocks`)
- **01 Global Search Topbar** (Search Topbar [0%–1.0%]): 64px global light top navigation bar.
- **02 Blocks Intro & Filter Tabs** (Hero + Tab Bar [1.03%–8.4%]): Centered 48px display title above category filter links (Featured, Sidebar, Login, Signup).
- **03 Full-Width Block Previews** (Stacked Frames [8.4%–100.0%]): Stacked full-width 1px-bordered preview sandboxes complete with viewport resizers, CLI copy pills, and Open in v0 CTAs.

### Page: Colors (`/colors`)
- **01 Global Search Topbar** (Search Topbar [0%–0.9%]): 64px global light top navigation bar.
- **02 Color Registry Intro** (Centered + 2 CTA [0.86%–5.5%]): Concise centered header highlighting instant HEX, RGB, HSL, and CSS variable copying.
- **03 11-Stop Palette Matrix** (11-Col Swatches [5.5%–100.0%]): Clean 11-column (50–950) rounded swatch rows with per-scale format switchers and monospace token labels.

## 6. Signature Rules & Anti-AI Slop Guardrails
- **DO**: Restrict 99% of UI chrome to pure achromatic neutrals (`#FFFFFF` canvas, `#F5F5F5` muted fills, `#E5E5E5` 1px borders, `#0A0A0A` ink), using `#171717` solid black pills for primary actions.
- **DO**: Set display titles in Geist 600 semi-bold at 48px (`line-height: 1.10`, `-0.05em` tracking) and dense card controls at 13px–14px with crisp tabular numbers.
- **DO**: Eliminate decorative hero illustrations; fill the viewport immediately below the CTA with a 4-column bento of real interactive-grade UI cards (forms, bar charts, payout sliders, QR pairing).
- **DO**: Pair every block preview (`/blocks`) with a top toolbar containing `Preview / Code` tabs, viewport-width toggles, and a one-line `npx shadcn add` CLI pill in `Geist Mono`.
- **DON'T**: NEVER introduce indigo, purple, or neon gradients into shadcn/ui's core shell; keep the base aesthetic strictly achromatic black, white, and neutral gray.
- **DON'T**: NEVER float cards with heavy `0 20px 50px` drop shadows; separate surfaces cleanly with `1px solid #E5E5E5` borders and `#F5F5F5` input fills.
- **DON'T**: NEVER leave huge empty padding around 3-word marketing slogans; pack specimen cards with realistic domain copy (`$1,211.29`, `Minimum Payout Amount`, `S&P 500 VOO`).
- **DON'T**: NEVER mix inconsistent border radii inside one card group; pair `16px` outer card shells cleanly with `10px` inputs and full-pill (`9999px`) action buttons.
