Skip to content

Misleading order of steps in the "Using Vite" installation guide #2254

Open
@mohammad-kenaan

Description

@mohammad-kenaan

Page:
https://tailwindcss.com/docs/installation/using-vite

Section:
Get started with Tailwind CSS

Problem:
As a new user, I followed the guide step by step.
When I selected Vite as the installation method, the first command I was instructed to run was:
npm install tailwindcss @tailwindcss/vite

Then in Step 2, it asks me to Configure the Vite plugin by editing vite.config.js.

However, at this point, I haven't even created a Vite project yet, and the file vite.config.js does not exist.

Nowhere in the page does it say that I need to initialize a Vite project first using:
npm create vite@latest my-app

This led to confusion, especially as a beginner who followed the documentation literally.

Suggestion:
Please consider updating the page to include a clear first step for creating a Vite project before installing Tailwind packages, or at least a note that assumes the reader has already initialized a Vite project.

This small clarification can make a big difference for beginners.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions