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
- React 19+
- Tailwind CSS v4
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:
pnpm dlx shadcn@latest add @taut-ui/button
Install multiple components in a single command:
pnpm dlx shadcn@latest add @taut-ui/button @taut-ui/dialog @taut-ui/input @taut-ui/select
Manual Copy
- Browse any component in Components or explore Particles.
- Install the npm packages listed under the Manual tab (
@base-ui/react,class-variance-authority, andlucide-react). - Copy
lib/utils.ts(pluslib/ripple.tsxorlib/morph.tsxwhen used) and the component source into your project, for examplecomponents/ui/button.tsx. - Add the theme tokens to your
app/globals.cssfrom 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-sansto 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:
import { Inter, JetBrains_Mono } from "next/font/google";
export const fontSans = Inter({
display: "swap",
subsets: ["latin"],
variable: "--font-sans",
});
export const fontMono = JetBrains_Mono({
display: "swap",
subsets: ["latin"],
variable: "--font-mono",
});Apply the variables to <body> in app/layout.tsx:
<body
className={`${fontSans.variable} ${fontMono.variable} relative bg-sidebar font-sans text-foreground antialiased`}
>Composition Patterns
taut ui is built on Base UI primitives:
- Use
renderinstead ofasChild: Pass the target element to therenderprop on triggers, links, and close buttons:
<DialogTrigger render={<Button variant="outline" />}>
Open Dialog
</DialogTrigger>-
Explicit slot names (
*Popupand*Panel): Overlays and collapsible containers use*Popupand*Panel(DialogPopup,DialogPanel,MenuPopup,AccordionPanel,TabsPanel). -
Direct primitive access: Every component re-exports its underlying Base UI namespace (such as
DialogPrimitiveorSliderPrimitive) for custom compositions:
import { Slider, SliderValue, SliderPrimitive } from "@/components/ui/slider";