# shadcn/ui

> Ready-made web parts. Their code is copied into your project, so it is yours.

**Field:** Design  
**Category:** Design Standards  
**Also known as:** shadcn, Shadcn UI

## Think of it like

It is like a book of paper doll patterns. You trace the one you want, and then it is yours to color.

## Definition

shadcn/ui is an open source set of ready-made interface parts, like buttons and dialogs, for websites built with React. It says of itself that it is not a component library. You do not install it as one package. Instead, a command-line tool copies the code for each part into your own project. From then on the code is yours to change. It is styled with Tailwind CSS, and many teams use it as the base for their own library.

## Example

Kai runs one command to add a button. The button's code lands in his project, and he changes its corners to match his brand.

## Example code

```bash
pnpm dlx shadcn@latest add button
```

The add command copies the button's code into your project. There is no package to update later.

## Why it matters

Teams get a good start without being tied to someone else's design. They can change any line.

## Common mistake

Waiting for fixes to arrive by themselves. The code was copied, so a later fix in the first copy never reaches yours.

## Three principles

- **Copy, not install.** The code is yours.
- **Open code.** Change any line.
- **A starting point.** For your own library.

## Related terms

- [Component Library](https://learn.benibix.com/term/design/component-library)
- [Design System](https://learn.benibix.com/term/design/design-system)
- [IBM Carbon Design System](https://learn.benibix.com/term/design/ibm-carbon-design-system)
- [Tailwind CSS](https://learn.benibix.com/term/development/tailwind-css)
- [React](https://learn.benibix.com/term/development/react)
- [Open Source Software](https://learn.benibix.com/term/development/open-source)

## Told apart from

- [shadcn/ui vs Component Library](https://learn.benibix.com/compare/shadcn-ui-vs-component-library): People think shadcn/ui is a component library, and its own docs say it is not. A component library is a package you install and upgrade, and its maker keeps the code. shadcn/ui copies the code for each part into your project. After that, the code is yours. You can change any line, but fixes made to the first copy will not reach yours.

![Two lanes. In the first, a package such as Carbon or Polaris is installed into an app, and updates arrive by upgrading the package. In the second, the shadcn/ui command copies component files into the app's own folder, where the team owns and edits them.](https://learn.benibix.com/diagrams/des8-system-sources.svg)

---

Source: https://learn.benibix.com/term/design/shadcn-ui
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
