Installation
Add ui-kit to a React 19 and Tailwind CSS v4 project.
Requirements
- React 19 (
reactandreact-dom) - Tailwind CSS v4 (
@tailwindcss/viteor PostCSS) - @base-ui/react and Motion (bundled as library dependencies)
Local development
bun install
bun run devRun the full quality gate (MDX compilation, TypeScript check, production build, and CSS/slot audit):
bun run checkImporting components
All modules are exported via subpaths so bundlers tree-shake unused code automatically:
import { MotionRoot } from "ui-kit";
import { Button } from "ui-kit/components/button";
import { GuardrailFunnel } from "ui-kit/components/guardrail-funnel";
import "ui-kit/styles.css";
export function Example() {
return (
<MotionRoot>
<Button variant="primary">Approve run</Button>
</MotionRoot>
);
}Lightweight theme entry
Components and blocks use standalone Tailwind CSS v4 utilities with zero per-component CSS files. In a host app that already configures Tailwind v4, import only the lightweight theme entry and point @source to the components you use:
@import "tailwindcss";
@import "ui-kit/theme.css";
@source "./node_modules/ui-kit/src/components/button.tsx";