We recommend starting a new Next.js app using create-next-app, which sets up everything automatically for you. To create a project, run:
npx create-next-app@latest
On installation, you'll see the following prompts:
What is your project named? my-appWould you like to use TypeScript? No / YesWould you like to use ESLint? No / YesWould you like to use Tailwind CSS? No / YesWould you like your code inside a `src/` directory? No / YesWould you like to use App Router? (recommended) No / YesWould you like to use Turbopack for `next dev`? No / YesWould you like to customize the import alias (`@/*` by default)? No / YesWhat import alias would you like configured? @/*
After the prompts, create-next-app will create a folder with your project name and install the required dependencies.
You will be asked a few questions to configure components.json:
Which style would you like to use? › New YorkWhich color would you like to use as base color? › ZincDo you want to use CSS variables for colors? › no / yes