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.
Skip the shadcn add-on
Don't add the shadcn add-on when the TanStack CLI asks. You'll run the shadcn CLI yourself in the next step.
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
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.