pnpm create vite
;
Choose react + Typescript + SWC template project.
-
install dependencies with
pnpm add -D tailwindcss postcss autoprefixer
; -
Generate both tailwind.config.cjs and postcss.config.cjs with
pnpm exec tailwindcss init -p
; -
Configure your template paths in tailwind.config.cjs file: