Index
[Nuxt] Set up a new Nuxt project with Tailwind CSS
Tested with: Nuxt v3 • Tailwind CSS v4
-
Use the Nuxt
initCLI command and follow the wizard to generate a barebones project.Terminal window npx nuxi@latest init <project-name>Terminal window yarn dlx nuxi@latest init <project-name>Terminal window pnpm dlx nuxi@latest init <project-name> -
Navigate into the project directory.
Terminal window cd <project-name> -
Follow the official Tailwind framework guide for Nuxt: https://tailwindcss.com/docs/installation/framework-guides/nuxt
-
Start the development server.
Terminal window npm run devTerminal window yarn run devTerminal window pnpm run dev