Adds Tailwind CSS to Nuxt applications via @nuxtjs/tailwindcss. Supports layers, config viewer, CSS nesting, and DevTools integration.
Overview
The Tailwind CSS module for Nuxt wires Tailwind into Nuxt apps with little manual configuration. Install via the Nuxt CLI or package manager, register the module in nuxt.config, then use utility classes in Vue and Nuxt components.
Documented capabilities include zero-config startup, Nuxt Layers compatibility, postcss-nesting for modern CSS syntax, a visual config viewer, and Nuxt DevTools hooks. Applications can reference Tailwind configuration with tree-shaking, and other modules may extend settings through Nuxt hooks.
The v7 branch targets Tailwind CSS 4 compatibility, while v6 remains the stable line for Tailwind CSS 3. Website examples show optional exposeConfig and viewer flags under the tailwindcss key in Nuxt config.
The module is community maintained under the nuxt-modules organization and distributed on npm for use in standard Nuxt projects.
Key features
- Zero-config Tailwind setup
- Nuxt Layers support
- CSS nesting via postcss
- Visual config viewer
- Nuxt DevTools integration
- Tree-shaken config references
- Hook-based extensions
- CLI module installation
Use cases
- New Nuxt sites with Tailwind
- Layered Nuxt monorepos
- Shared design token configs
- Utility-first Vue UIs