← Back to Guides
UI

Shadcn UI – Documentation

Installation, theming, components, registry, and v0 integration.

Open Source Link ↗

Overview

Shadcn/ui is a modern component library built on Radix UI primitives and Tailwind CSS, providing beautiful, accessible, and customizable React components. The library offers a comprehensive set of UI components with excellent TypeScript support, dark mode capabilities, and seamless integration with popular design tools and frameworks.

Key Points

Built on Radix UI primitives for accessibility
Styled with Tailwind CSS for customization
Copy-paste components (not a traditional npm package)
Full TypeScript support and type safety
Dark mode support out of the box
Integration with v0, Figma, and other design tools

Prerequisites

React 18+ and TypeScript knowledge
Tailwind CSS setup in your project
Understanding of component-based architecture
Basic knowledge of CSS and styling

Step-by-Step Guide

1Install and configure Tailwind CSS
2Set up the shadcn/ui CLI tool
3Initialize shadcn/ui in your project
4Configure components.json file
5Add components using the CLI
6Customize themes and styling as needed