Create project
Start by creating a new TanStack Start project by following the Build a Project from Scratch guide on the TanStack Start website.
Add Tailwind CSS
Install tailwindcss and its dependencies.
Create postcss.config.ts
Create a postcss.config.ts file at the root of your project:
Create app/styles/app.css
Create an app.css file in the app/styles directory and import tailwindcss:
Import app.css
Edit tsconfig.json file
Add the following code to the tsconfig.json file to resolve paths:
Run the CLI
Run the shadcn init command to setup your project:
This will create a components.json file in the root of your project and configure CSS variables inside app/styles/app.css.
Enter license
Enter your license key to unlock the full features of Pure UI:
Initialize design system
Use Design System to learn and initialize your own design system or start with the default theme:
Add components
You can now start adding components to your project.
The command above will add the Button component to your project. You can then import it like this: