Installation
Sprõut requires React 19 and Tailwind CSS 4. Install the npm package and import components, or copy their source into your app with the shadcn CLI.
Package setup
Add the package to your React application. Updates arrive with each release.
pnpm add @tulipfarm/sproutImport Sprõut after Tailwind in your existing stylesheet. Source registration is included: no JavaScript theme config or extra reset is needed.
@import "tailwindcss";
@import "@tulipfarm/sprout/styles.css";import {
Sidebar,
SidebarProvider,
SidebarTrigger,
} from "@tulipfarm/sprout/sidebar";
<SidebarProvider className="min-h-dvh">
<Sidebar label="Main navigation">
{/* Compose your navigation here. */}
</Sidebar>
<main><SidebarTrigger /></main>
</SidebarProvider>Install through shadcn
Every component is also a shadcn registry item. The CLI copies its source into your app, so you own and can edit it. Run shadcn init first if your app has no components.json.
pnpm dlx shadcn@latest add https://sprout.tulipfarm.ai/r/button.jsonComponents land in components/ui, helpers and icons in lib/sprout. The first one also adds Sprout base: the cn() helper and the design tokens. Each item brings the Sprõut components it uses and the CSS it needs. Every component page has the command under Installation, plus the manual steps.
To type shorter names, add the registry to components.json:
{
"registries": {
"@sprout": "https://sprout.tulipfarm.ai/r/{name}.json"
}
}pnpm dlx shadcn@latest add @sprout/button @sprout/dialog @sprout/theme-tulipfarmThemes install as theme-<name>, for example theme-ocean. The full list is in the registry index. If your app already has a shadcn button.tsx or another file with the same name, the CLI asks before it overwrites it.
To use the npm package through shadcn instead, add https://sprout.tulipfarm.ai/r/sprout.json. It installs @tulipfarm/sprout and adds the CSS import, and copies no source.
Existing shadcn applications
Keep your existing imports and theme. Sprõut uses its own --sprout-* variables and semantic utilities. No shared --primary or --background variables are replaced.
Tailwind utility prefixes are not supported in this preview. Sprõut and shadcn do not promise identical props. Use aliases if both libraries export a component with the same name.