tailwindcss
Add Tailwind CSS to your Nuxt application in seconds with PurgeCSS included for minimal CSS.
Nuxt Tailwind
Tailwind CSS module for Nuxt ⚡️
Features
- 👌 Zero configuration to start (see video)
- 🪄 Includes CSS Nesting with postcss-nesting
- 🎨 Discover your Tailwind Colors (see video)
- ⚙️ Reference your Tailwind config in your app
- 📦 Extendable by Nuxt modules
- 🚀 Supports both Nuxt 3 and Nuxt 2
Quick Setup
- Add
@nuxtjs/tailwindcss
dependency to your project
# Using pnpmpnpm add --save-dev @nuxtjs/tailwindcss# Using yarnyarn add --dev @nuxtjs/tailwindcss# Using npmnpm install --save-dev @nuxtjs/tailwindcss
- Add
@nuxtjs/tailwindcss
to themodules
section ofnuxt.config.{ts,js}
{ modules: [ '@nuxtjs/tailwindcss' ]}
That's it! You can now use Tailwind classes in your Nuxt app ✨
Contributing
You can contribute to this module online with CodeSandBox:
Or locally:
- Clone this repository
- Install dependencies using
pnpm i
- Prepare for development using
pnpm dev:prepare
- Start development server using
pnpm dev
License
Copyright (c) Nuxt Community