shadcn/ui

127k GitHub starsshadcn-ui/ui

Beautiful, ready-made buttons, forms, menus and dashboards you copy into your app and change freely. The favourite starting point for AI-built websites.

View on GitHub

Build a stack with shadcn/ui

Pick parts from it and the projects that work well with it. We check the licences together and write a prompt for your AI.

shadcn/ui
Tailwind CSS
Supabase
Payload
design-bites

Your stack

Tick the parts you want to use. Projects whose parts are not listed yet can be added whole; the prompt tells your AI to find the right pieces in their code.

Website (opens in a new tab)
More actions

Why we picked it

Ask an AI assistant to build a web app today and there's a good chance it reaches for shadcn/ui. It gives you a full set of good-looking, accessible pieces, from buttons and forms to calendars, charts and chat screens, but instead of hiding them in a package you can't touch, it copies the code into your project. That means you, or your AI assistant, can change anything. It has its own connection for AI assistants, a theme builder, and a huge community making extra blocks. It's MIT licensed, so you can use it in work you sell.

About shadcn/ui

shadcn/ui is a free collection of interface pieces for websites and web apps: buttons, forms, menus, pop-up windows, tables, calendars, charts and more. It was started by the designer and developer known as shadcn, who works at Vercel, and it has grown into one of the most popular projects on GitHub. It's built for React (the most popular way to build web interfaces) and styled with Tailwind CSS.

The big idea is that it isn't a normal library. You don't install a package that you can only use as-is. A small tool copies each piece's code straight into your project, so it becomes your code. Want rounder buttons, a different menu, or your own brand colours? Just change the file.

What it can do

  • Gives you 50+ polished pieces. Buttons, inputs, dropdowns, dialogs, tabs, tables, date pickers, charts, toasts and more, all designed to look good together.
  • Comes with whole page sections. Ready-made "blocks" for login screens, dashboards, sidebars and settings pages, so you can start from a complete layout instead of a blank page.
  • The code is yours. Run npx shadcn@latest add button and the button's code lands in your project. Nothing is locked away, so you can change any detail.
  • Works well with AI assistants. Its MCP connection lets Claude Code, Cursor and other assistants search for pieces and add them for you when you ask in plain words, like "add a pricing table". Set it up for Claude Code with npx shadcn@latest mcp init --client claude.
  • Pieces for AI products. Newer components cover chat screens, message lists, code blocks and step-by-step questions, so you can build the interface for your own AI tool.
  • Easy to theme. Pick a style, colours, fonts and corner roundness, save it as a preset, and every piece follows it. There are eight built-in styles to start from.
  • Accessible by default. The pieces work with a keyboard and with screen readers, which is hard to get right on your own.
  • A big world of extras. Many other people publish blocks, templates and themes that install the same way, from free community sets to paid collections.

Where you'll meet it

shadcn/ui is behind a large share of new web apps, and it's what tools like v0 and many AI coding assistants use when they build an interface for you. It's a natural fit with Tailwind CSS for styling, Supabase for sign-in and data, and Payload when your team needs to edit content. Pair it with a style file from design-bites and your AI assistant builds pages that look designed, not generic.

shadcn/ui, Material UI or Chakra UI?

All three give you ready-made pieces for React apps. The difference is how much you own and how much is decided for you.

shadcn/uiThis page

Best forApps you want to look your own, built with an AI assistant

Copies the code into your project so you can change anything. Clean, modern look, styled with Tailwind CSS, and the default choice of most AI tools. You keep the code up to date yourself.

What you get
50+ components and page blocks you own
Open source
Yes (MIT)
Cost
Free
Material UI

Best forBig business apps that need lots of complex parts ready to go

A large, mature library based on Google's Material Design. Many components work out of the box, including advanced tables and charts in paid extras. Its look is easy to recognise and takes work to change.

What you get
A full installed library with a Material look
Open source
Yes (MIT), with paid Pro and Premium extras
Cost
Free core, paid extras
Chakra UI

Best forTeams who like styling straight on each component

An installed library with a friendly way of setting colours and spacing on each piece, plus easy light and dark themes. Fewer AI tools use it by default, and it adds more to your page size.

What you get
An installed, themeable library
Open source
Yes (MIT)
Cost
Free

A quick way to choose: building with an AI assistant or want full control of the look? Start with shadcn/ui. Building a large internal business app and want the most ready-made parts? Material UI. Like Chakra's way of styling? It's still a solid, free choice.

Good to know

  • It's made for React. If your site uses something else, like Vue or Svelte, look for a community version of shadcn/ui for that.
  • You need a React project to put it in, such as Next.js. AI assistants can set this up for you, but it's a tool for building apps, not a website builder you click around in.
  • Because the code is copied into your project, updates don't arrive by themselves. That's the trade-off for owning it. The tool can show you what changed before you update a piece.
  • Out of the box, many shadcn/ui sites look alike. Change the colours, fonts and roundness, or start from a style file, so yours doesn't look like everyone else's.
  • Licence: MIT. You can use it for free, including in paid products.

What you can build with it

  • Building a good-looking app or dashboard without designing every button
  • Giving an AI assistant a reliable set of pieces to build pages with
  • Making sign-up forms, settings pages and admin screens quickly
  • Building a chat screen for an AI product
  • Starting your own design system from code you fully own

Building blocks

shadcn/ui is made of parts you can use on their own in your project. Copy a prompt to have your AI assistant add one for you, and see the licence card for what you may do with them.

  • Ready-made buttons, forms and menus

    Free to use, even in closed products

    Copies well-designed interface pieces, like buttons, dialogs and forms, straight into your React project so you own and can edit them.

    Use it to build

    • React and Next.js apps
    • Starting a design system
    • Admin panels
    View code
    Technical details
    Name
    shadcn
    What it is
    Command-line tool
    How to use it
    Copy the code and adapt it
    Install
    npm i shadcn
    Licence
    MIT License (read from packages/shadcn/package.json (licence field))

Works well with

  • Tailwind CSS

    98.1k GitHub stars

    Style a website by adding short, readable words like "rounded" or "text-lg" to each element. The styling tool AI coding assistants use most. Free, open source.

    • Styling
    • MIT License
  • Supabase

    114k GitHub stars

    Everything behind an app in one place: a database for your data, sign-in for your users, file storage and live updates. Open source and free to start.

    • Backend as a service
    • Relational databases
    • Apache 2.0
  • Payload

    45.5k GitHub stars

    Build a website or app with a ready-made admin panel where your team edits content. Free, open source, and it lives inside your Next.js app.

    • Headless CMS
    • MIT License
  • design-bites

    91 GitHub stars

    270+ ready-made design guides from great websites like Linear, Stripe and Vercel. Drop one into your project and your AI assistant builds in that style.

    • Design & prototyping
    • Styling
    • MIT License

Comments

No comments yet. Be the first to share your thoughts.