codefast/ui

Command Palette

Search for a command to run...

Getting Started

Up and running in minutes.

@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

Before you begin

@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

Radix UI primitivesStrict TypeScriptDark mode ready

Installation

Three steps to your first component

Each step is copy-ready. Paste into your terminal or project and you are ready to build.

  1. 01

    Install the package

    Add @codefast/ui to your project. Peer dependencies (React 19, Tailwind v4) must already be present.

    pnpm add @codefast/ui
  2. 02

    Import the CSS

    Add 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";
  3. 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>;
    }

Theming

Pick a palette, dark mode follows

Swap the theme import to change accent and neutral tokens. Components read semantic CSS variables — no prop drilling for light and dark.

neutralskyzincslatestonebluevioletrose+14 more
@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

70+ components available

From primitives like Button and Badge to complex patterns like Command, Calendar, and Sidebar — everything follows the same composable API.

Next steps

Ready to explore?

Browse live previews with copy-ready source for every component, or open the repository to see how the design system is built.