Tailwind CSS module for Nuxt
See the code[!NOTE] You’re viewing the v7 branch for compatibility with Tailwind CSS 4.
For the current stable release that uses Tailwind CSS 3, see v6.
Add @nuxtjs/tailwindcss using the Nuxt CLI to your project
npx nuxi@latest module add tailwindcss
# Using pnpm
pnpm add --save-dev @nuxtjs/tailwindcss
# Using yarn
yarn add --dev @nuxtjs/tailwindcss
# Using npm
npm install --save-dev @nuxtjs/tailwindcss
and then to the modules section of nuxt.config.{ts,js}
export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss'
]
})
That's it! You can now use Tailwind classes in your Nuxt app ✨
You can contribute to this module online:
pnpm ipnpm dev:preparepnpm devMIT - Made with 💚
186 followers · starred Jan 2025
303 followers · starred Sep 2019
680 followers · starred Jul 2024
189 followers · starred Apr 2023
Tailwind CSS module for Nuxt
See the code[!NOTE] You’re viewing the v7 branch for compatibility with Tailwind CSS 4.
For the current stable release that uses Tailwind CSS 3, see v6.
Add @nuxtjs/tailwindcss using the Nuxt CLI to your project
npx nuxi@latest module add tailwindcss
# Using pnpm
pnpm add --save-dev @nuxtjs/tailwindcss
# Using yarn
yarn add --dev @nuxtjs/tailwindcss
# Using npm
npm install --save-dev @nuxtjs/tailwindcss
and then to the modules section of nuxt.config.{ts,js}
export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss'
]
})
That's it! You can now use Tailwind classes in your Nuxt app ✨
You can contribute to this module online:
pnpm ipnpm dev:preparepnpm devMIT - Made with 💚
186 followers · starred Jan 2025
303 followers · starred Sep 2019
680 followers · starred Jul 2024
189 followers · starred Apr 2023