How to manually set up shadcn/ui with Vite, React, TypeScript, and Tailwind CSS v4

A developer guide published on DEV Community walks through manually configuring a new project using Vite, React, TypeScript, Tailwind CSS v4, and shadcn/ui with the pnpm package manager. The tutorial is aimed at newer developers and focuses on explaining the path alias configuration that shadcn/ui requires to function correctly. Steps covered include scaffolding the Vite app, installing Tailwind via its Vite plugin, updating TypeScript config files with the necessary path aliases, and initializing shadcn/ui. The guide also adds a sample Button component to verify the full setup is working. The author notes that an automated alternative exists in the official shadcn/ui documentation for those who prefer it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in