diff --git a/README.md b/README.md index 805b0908..1bdf4858 100755 --- a/README.md +++ b/README.md @@ -31,14 +31,7 @@ 1. Add `@nuxtjs/tailwindcss` dependency to your project ```bash -# Using pnpm -pnpm add --save-dev @nuxtjs/tailwindcss - -# Using yarn -yarn add --dev @nuxtjs/tailwindcss - -# Using npm -npm install --save-dev @nuxtjs/tailwindcss +npx nuxi@latest module add tailwindcss ``` 2. Add `@nuxtjs/tailwindcss` to the `modules` section of `nuxt.config.{ts,js}` diff --git a/docs/content/1.getting-started/1.setup.md b/docs/content/1.getting-started/1.setup.md index 4451df45..d0782f74 100644 --- a/docs/content/1.getting-started/1.setup.md +++ b/docs/content/1.getting-started/1.setup.md @@ -6,23 +6,10 @@ description: Using Tailwind CSS in your Nuxt project is only one command away. ## Installation 1. Install `@nuxtjs/tailwindcss` dependency to your project: - -::code-group - -```bash [yarn] -yarn add -D @nuxtjs/tailwindcss -``` - -```bash [npm] -npm install -D @nuxtjs/tailwindcss -``` - -```sh [pnpm] -pnpm i -D @nuxtjs/tailwindcss +```bash +npx nuxi@latest module add tailwindcss ``` -:: - 2. Add it to your `modules` section in your `nuxt.config`: ::code-group