Skip to content

Installation

SortUI is in the shadcn registry directory, so the shadcn CLI finds it with no setup. Install any component by name.

Quick start

pnpm dlx shadcn@latest add @sortui/button

Dependencies resolve automatically: npm packages, other SortUI components and the SortUI tokens each component uses.

Or install by URL:

pnpm dlx shadcn@latest add https://sortui.dev/r/button.json

The SortUI theme

Optional. Components work without it, on your own base colours and radii. The theme sets the values SortUI is designed with (surfaces, fills, lines, text colours and the radius ladder) in your :root, .dark and @theme inline, and the CLI asks before it replaces yours.

pnpm dlx shadcn@latest add @sortui/theme

Theming explains what each token is for and how to retune it.

A project on Radix

SortUI is built on Base UI, like every new shadcn/ui project. In an older project on Radix, SortUI components install next to yours. A component you replace with its SortUI version composes with render instead of asChild, so update the places that use it.

Ship your next project this week

Get the full Figma kit, the code of 180+ sections and every future update for one payment.

Get Pro Access