Skip to content
Index

[Nuxt] Set up a new Nuxt project with Tailwind CSS

Tested with: Nuxt v3 • Tailwind CSS v4

  1. Use the Nuxt init CLI command and follow the wizard to generate a barebones project.

    Terminal window
    npx nuxi@latest init <project-name>
  2. Navigate into the project directory.

    Terminal window
    cd <project-name>
  3. Follow the official Tailwind framework guide for Nuxt: https://tailwindcss.com/docs/installation/framework-guides/nuxt

  4. Start the development server.

    Terminal window
    npm run dev