Install the package
Add @codefast/ui to your project. Peer dependencies (React 19, Tailwind v4) must already be present.
pnpm add @codefast/ui@codefast/ui is a collection of copy-friendly React components. Install the package, wire up the CSS, and start building — no config files required.
Requirements
@codefast/ui assumes a modern React + Tailwind stack. No extra config files — just install, import the CSS, and compose.
React
≥ 19.0.0
TypeScript
≥ 5.0
Tailwind CSS
v4
Node.js
≥ 20
Installation
Each step is copy-ready. Paste into your terminal or project and you are ready to build.
Add @codefast/ui to your project. Peer dependencies (React 19, Tailwind v4) must already be present.
pnpm add @codefast/uiAdd the design-system stylesheet to your global CSS. Pick a theme palette, then load the preset for Tailwind variants and motion utilities.
@import "tailwindcss";
@import "@codefast/ui/css/themes/neutral.css";
@import "@codefast/ui/css/preset.css";Import any component by its named sub-path. No barrel imports, no tree-shaking surprises.
import { Button } from "@codefast/ui/button";
export function MyPage() {
return <Button variant="outline">Click me</Button>;
}Theming
Swap the theme import to change accent and neutral tokens. Components read semantic CSS variables — no prop drilling for light and dark.
@import "tailwindcss";
@import "@codefast/ui/css/themes/sky.css";
@import "@codefast/ui/css/preset.css";For SSR apps, add @codefast/theme to persist color-scheme preference without a flash of the wrong theme. This docs site uses sky; consumer apps typically start with neutral.
Library
From primitives like Button and Badge to complex patterns like Command, Calendar, and Sidebar — everything follows the same composable API.
Next steps
Browse live previews with copy-ready source for every component, or open the repository to see how the design system is built.