Installation
BoardCN is a shadcn registry. Add one line of config and the CLI writes components straight into your project.
Requirements
- React 19 or later
- Tailwind CSS v4 — CSS-first config, no
tailwind.config.jsneeded - TypeScript with an
@/*path alias
1. Point the CLI at the registry
Add the @boardcn namespace to your components.json. The aliases matter: BoardCN imports its own primitives through them, so they must resolve in your project.
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.
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.