Installation
BoardCN is a shadcn registry. Install items by URL — no namespace registration or local registries config required.
Requirements
- React 19 or later
- Tailwind CSS v4 — CSS-first config, no
tailwind.config.jsneeded - TypeScript with an
@/*path alias
1. Configure aliases
BoardCN imports its primitives through the aliases below, so they must resolve in your project. A registries block is optional — item URLs work without one.
2. Install the foundation
The boardcn item installs the design-system layer — theme tokens, the type ramp, global styles, and the cx helper — that every component expects.
Then import the stylesheet once, at your app's entry. It pulls in theme.css and typography.css itself.
3. Add components
Each item pulls only what it imports. Installing a template brings the blocks, charts, and primitives it composes — without duplicating any shared file.
Item JSON lives at https://boardcn.dev/r/{name}.json — for example https://boardcn.dev/r/button.json.
Framework setup
- 1. Next.js (recommended)
create-next-appalready gives you TypeScript, Tailwind, and the@/*alias, so there is nothing else to wire up. - 2. Vite
Install the Tailwind plugin, then declare the alias in both
vite.config.tsand your tsconfig so the bundler and the type checker agree.vite.config.ts tsconfig.json - 3. React Router and Astro
Both work the same way: add the Tailwind v4 plugin, define the
@/*alias, and importglobals.cssonce in the root layout. For Astro, render BoardCN components inside a React island — they are interactive.
Static assets
Two items ship SVGs alongside their source: settings-modal writes four plugin icons into public/ai-chat/. The CLI copies them for you, but they are referenced by absolute path — if you serve static files from somewhere other than public/, update those paths in components/blocks/settings/settings-storage.tsx.
Next steps
- CLI — the commands in full.
- Agent skill — install the dashboard skill with the Vercel skills CLI.
- Theming — change the accent hue.
- Dark mode — wire up the theme toggle.
Docs and registry: https://boardcn.dev