You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@nuxtjs/tailwindcss

Package Overview
Dependencies
Maintainers
7
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxtjs/tailwindcss

Tailwind CSS module for Nuxt

6.14.0
latest
Source
npmnpm
Version published
Weekly downloads
258K
3.79%
Maintainers
7
Weekly downloads
 
Created

What is @nuxtjs/tailwindcss?

@nuxtjs/tailwindcss is a Nuxt.js module that integrates Tailwind CSS into your Nuxt.js project. It simplifies the setup and configuration of Tailwind CSS, allowing you to quickly start using Tailwind's utility-first CSS framework in your Nuxt.js applications.

What are @nuxtjs/tailwindcss's main functionalities?

Easy Setup

By adding @nuxtjs/tailwindcss to the buildModules array in your nuxt.config.js file, you can easily set up Tailwind CSS in your Nuxt.js project.

```json
{
  "buildModules": [
    "@nuxtjs/tailwindcss"
  ]
}
```

Custom Configuration

You can customize the Tailwind CSS configuration directly in your nuxt.config.js file, allowing you to extend the default theme, add custom colors, and more.

```json
{
  "tailwindcss": {
    "config": {
      "theme": {
        "extend": {
          "colors": {
            "primary": "#1DA1F2"
          }
        }
      }
    }
  }
}
```

PurgeCSS Integration

The module integrates PurgeCSS to remove unused CSS, optimizing your final build size. You can configure the paths to be scanned for class names in the nuxt.config.js file.

```json
{
  "tailwindcss": {
    "purgeCSS": {
      "enabled": true,
      "content": [
        "./pages/**/*.vue",
        "./components/**/*.vue"
      ]
    }
  }
}
```

Other packages similar to @nuxtjs/tailwindcss

FAQs

Package last updated on 27 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts