Tailwind CSS is integrated into the create-next-app CLI, which supports TypeScript and JavaScript, as well as the App Router (app/) and the pages directory pages/.
Execute create-next-app with npm, Yarn, or pnpm to bootstrap a project preconfigured with Tailwind CSS:
npx create-next-app --tailwind with-tailwindcss-appyarn create next-app --tailwind with-tailwindcss-apppnpm create next-app --tailwind with-tailwindcss-app