Requirements
React
≥ 19.0.0
TypeScript
≥ 5.0
Tailwind CSS
v4
Node.js
≥ 20
Installation
- 01
Install the package
Add @codefast/ui and its peer dependencies to your project.
pnpm add @codefast/ui - 02
Import the CSS
Add the design-system stylesheet to your global CSS. It ships neutral tokens, custom Tailwind variants, and animation utilities.
@import "tailwindcss"; @import "@codefast/ui/css/themes/neutral.css"; @import "@codefast/ui/css/preset.css"; - 03
Use a component
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>; }
Library
65+ components available
From primitives like Button and Badge to complex patterns like Command, Calendar, and Sidebar — everything follows the same composable API.
BadgeAlertAvatarSpinnerKbdAspect RatioCarouselChartEmptyItemTableData TableTypographyButtonButton GroupInputInput GroupInput NumberInput OTPInput PasswordInput SearchTextareaSelectNative SelectCheckboxCheckbox GroupCheckbox CardsRadioRadio GroupRadio CardsSwitchSliderToggleToggle GroupCalendarDate PickerLabelFieldFormTabsBreadcrumbPaginationMenubarNavigation MenuSidebarDialogTooltipPopoverDropdown MenuAlert DialogCommandContext MenuDrawerHover CardSheetProgressProgress CircleSkeletonSonnerCardAccordionSeparatorScroll AreaCollapsibleResizable