@kivacore/shadcn
v2.0.0
Published
Official shadcn/ui components for Base UI
Readme
@kivacore/shadcn
React components from the official shadcn/ui Base UI registry. The default style is Base Vega. The package also includes Base Nova, Maia, Lyra, Mira, Luma, Rhea and Sera.
Usage
Install the package in a React 19.2+ project with Tailwind CSS 4.2+.
pnpm add @kivacore/shadcnimport { Dialog, DialogContent, DialogTitle, DialogTrigger } from "@kivacore/shadcn/dialog"
import { Button } from "@kivacore/shadcn/button"
export function Details() {
return (
<Dialog>
<DialogTrigger render={<Button />}>View details</DialogTrigger>
<DialogContent>
<DialogTitle>Details</DialogTitle>
</DialogContent>
</Dialog>
)
}Import from the root for the complete Vega collection, or use a style such as @kivacore/shadcn/base-nova or @kivacore/shadcn/base-nova/dialog. Use components from the same style when composing providers and their children. Hooks and utilities are available from @kivacore/shadcn/hooks and @kivacore/shadcn/lib.
Import the theme in your Tailwind entry stylesheet. Adjust the source path to point from that stylesheet to the installed package.
@import "tailwindcss";
@import "@kivacore/shadcn/css";
@source "../node_modules/@kivacore/shadcn/dist/base-vega";
@source "../node_modules/@kivacore/shadcn/dist/lib";The default palette is zinc. Slate, neutral, stone and gray are available via paths such as @kivacore/shadcn/css/slate. Register the style directory used by your app.
Migration from Radix
Replace new-york and radix-* import paths with a base-* style. Root and unqualified component imports now use Base Vega. Check component props and event signatures against the Base UI examples. For example, pass an element to a trigger's render prop for custom composition. Use Field for forms. Upstream provides no Base implementation for the old form module.
Toaster at the package and style roots still refers to Sonner. Import BaseToaster and toast together from a style root for Base UI toasts, or import Toaster and toast from that style's toast module.
The official Base UI Command uses cmdk for command search and selection. cmdk carries transitive Radix dependencies.
Syncing the package
Run these commands at the repository root.
pnpm shadcn:sync
pnpm install
pnpm --filter @kivacore/shadcn buildThe sync reads the official Base preset list, imports every implemented UI item and its shared hooks and helpers, and generates package exports. The style's index.ts lists its components. Registry examples and page blocks are outside the component catalog.
