Skip to content

Pick your style: Denkbaar

Book a conversation

Articles

Knowledge

21st.dev and shadcn/ui: building blocks you own

With shadcn/ui and 21st.dev you put ready-made parts into your own code, and then change them. That way you build fast, without being tied to a library.

A designer selects interface parts beside a laptop.
Use existing building blocks and adapt the code yourself. Illustration: Denkbaar.

Building a site with AI is fast. But a model that invents everything itself often makes the same buttons and the same cards. With good building blocks, you start higher, and you keep the code in your own hands.

Plain technical English shadcn/ui is a set of React components that you put into your own project as source code, not as a package. 21st.dev is a collection of more than 12,000 components in the same registry format. An agent can search and add them through the 21st MCP server.

Why it matters

With a normal component library, you install a package. If you want something the library does not offer, you work around it. shadcn/ui says it itself: “This is not a component library. It is how you build your component library.” You get the code itself, and you change it. That also works well with AI: the model can read and improve the code.

An open folder lies beside separate buttons and screen cards.
You get the source code of the components themselves. Illustration: Denkbaar.

How it works

Search: 21st.dev or shadcn/ui

Choose a component

Agent puts the source code in your project

Adapt it to your own style

Test and screenshot

You choose a component, the agent puts the code in your project, and you adapt it to your own style.

  • shadcn/ui (MIT) names five principles: Open Code, Composition, Distribution, Beautiful Defaults and AI-Ready. A command-line tool and a fixed file format (the registry) put components into your project.
  • 21st.dev says: “Just copy-paste real designs.” Next to components, there are templates, themes, shaders and icons. The components are React and TypeScript with Tailwind CSS, in the shadcn registry format. You install the MCP server with npx @21st-dev/cli@latest init. There is a free start and paid plans; the prices are on their site.
A phone and a monitor show the same interface parts.
Inspect and test the design on phone and desktop. Illustration: Denkbaar.

What you do

  1. First search what already exists, before you let an agent invent a component.
  2. Put the code into your project and read it. It is your code now.
  3. Adapt it to your own style: your fonts, your colours, your spacing. Otherwise your site looks like a thousand others.
  4. Record the source of a copy. The theme button on this site is rebuilt after a component from 21st.dev, with the source in the code.
  5. Test and look at it on phone and desktop.

What we can do with you: we build your site or app with good building blocks, in your own style, and you own all the code. Book a conversation.

Sources

  1. shadcn/ui: Introduction (MIT)
  2. 21st.dev: components, templates and themes

Topics: designcomponentsfrontend