cnippet/ui
  1. docs
  2. installation
  3. tanstack start

guides

TanStack Start

Install and configure cnippet ui in a TanStack Start project.

cnippet ui is installed with the shadcn CLI. The TanStack CLI already sets up Tailwind CSS v4 and the @/* import alias.

Create a project

If you already have a TanStack Start app, skip this step.

Choose TanStack Start, the React framework and the recommended defaults.

Run the CLI

This creates components.json, adds src/lib/utils.ts and sets up the CSS variables in your stylesheet.

Add the cnippet ui theme

This replaces the default colors with the cnippet ui tokens, including info, success and warning. See Colors.

Add components

src/routes/index.tsx

Install everything at once

To add the full theme and every component in one command, run init with the cnippet ui style:

Next steps

  • Set up Dark Mode. TanStack Start renders on the server, so follow the section on preventing a flash of the wrong theme.
  • Browse all Components.