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-app
yarn create next-app --tailwind with-tailwindcss-app
pnpm create next-app --tailwind with-tailwindcss-app