0
Documentation

Quickstart

Set up taut ui in your React 19 and Tailwind CSS v4 project.

Get taut ui running in your application in a few minutes.

Requirements

Installation

Add components directly into your project using the CLI or by copying the source files.

Using the CLI

Run the shadcn CLI to pull any component and its required local helpers (ripple, morph) into your codebase:

Install multiple components in a single command:

Manual Copy

  1. Browse any component in Components or explore Particles.
  2. Install the npm packages listed under the Manual tab (@base-ui/react, class-variance-authority, and lucide-react).
  3. Copy lib/utils.ts (plus lib/ripple.tsx or lib/morph.tsx when used) and the component source into your project, for example components/ui/button.tsx.
  4. Add the theme tokens to your app/globals.css from the Theming guide.

Typography

Components use two font families, exposed through three variables:

  • --font-sans: UI controls, body copy, and labels
  • --font-heading: Display titles (DialogTitle, AlertDialogTitle, SheetTitle, EmptyTitle). It is an alias of --font-sans to keep the typography consistent, and can be overridden if you want a dedicated heading font
  • --font-mono: Code snippets and <Kbd> shortcuts

Configure them with next/font/google:

lib/fonts.ts

Apply the variables to <body> in app/layout.tsx:

app/layout.tsx

Composition Patterns

taut ui is built on Base UI primitives:

  1. Use render instead of asChild: Pass the target element to the render prop on triggers, links, and close buttons:
  1. Explicit slot names (*Popup and *Panel): Overlays and collapsible containers use *Popup and *Panel (DialogPopup, DialogPanel, MenuPopup, AccordionPanel, TabsPanel).

  2. Direct primitive access: Every component re-exports its underlying Base UI namespace (such as DialogPrimitive or SliderPrimitive) for custom compositions:

© taut ui — built with Base UI and Tailwind CSS v4.