Library /shadcn/ui
Design System v2024

shadcn/ui

Accessible components built with Radix UI and Tailwind CSS

Official docs

Color Palette

Typography — Inter

H1 · 700 · 36px · #09090B

Build your component library

H2 · 600 · 30px · #09090B

Beautifully designed components

H3 · 600 · 24px · #09090B

Open Source & Customizable

H4 · 600 · 20px · #09090B

Accessible by default

H5 · 600 · 16px · #09090B
Copy and paste into your apps
H6 · 600 · 14px · #09090B
Works with your favorite frameworks

Body · 400 · 14px

This is not a component library. It is a collection of re-usable components that you can copy and paste into your apps. Accessible. Open Source. Customizable.

Caption · 12px

Last updated · 2 minutes ago

Buttons

Primary

Solid zinc-900 background, white text, 6px radius, subtle focus ring

Outline

Transparent background, zinc border, hover fills with accent

Ghost

No border, hover accent background

Dark Surface

Buttons on dark backgrounds

Form Inputs

Badges & Tags

DefaultSecondaryOutline

Surfaces & Cards

Default Card

White surface with subtle border. Use for primary content containers.

Muted Section

Zinc-100 background for grouped secondary content.

Accent Panel

Light accent fill for highlighted callouts.

Dark Panel

Inverted surface for code blocks or hero sections.

Border Radius Scale

sm
4px
default
6px
md
8px
lg
12px
full
pill

Component Example

Copy & Paste

Components live in your codebase — not node_modules.

Accessible

Built on Radix UI primitives with ARIA support.

Themeable

CSS variables make light and dark mode effortless.

Design Tokens

Token Value Usage
--background
#FFFFFF
Page background
--foreground
#09090B
Primary text
--primary
#18181B
Primary button bg
--secondary
#F4F4F5
Secondary surfaces
--muted
#F4F4F5
Muted backgrounds
--border
#E4E4E7
Borders & inputs
--radius
0.5rem
Default border radius