Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Drush Tailwind CSS

No security coverage Under active development

This module provides Drush commands to compile Tailwind CSS directly without needing Node.js or npm. It automatically detects theme paths and allows passing through standard Tailwind CLI options.

Provides a Drush command that wraps the standalone Tailwind CSS CLI.
This allows you to compile Tailwind CSS directly via Drush — no Node.js or npm required.

Supported Tailwind CSS version: 4.x

Features

  • No Node.js needed — uses the official standalone Tailwind CSS binary
  • Auto-detects input/output paths from your active theme's file structure
  • Full Tailwind CLI option pass-through (--minify, --content, etc.)
  • Binary is cached outside the module directory and survives composer updates

Available Drush Commands

  • drush tailwind:install alias drush twi - Downloads the binary for the current platform
  • drush tailwind:build alias drush twb - Compiles Tailwind CSS once (auto-detects theme paths)
  • drush tailwind:watch alias drush tww - Watches for file changes and recompiles

Usage with no default theme auto-detection

drush tailwind:build --input web/themes/custom/my_theme/src/tailwind.css --output web/themes/custom/my_theme/css/style.css

Additional Requirements

  • Drush (installed per project)
  • Linux or macOS (FreeBSD is not supported).

Similar projects

This module is a replacement for npm/yarn.

Ask your assistant about Drush Tailwind CSS

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Mar 2026
Latest release
7 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core PHP Release date
1.0.0-beta1 Pre-release 10–11 Mar 11, 2026
1.x-dev Dev 10–11 Mar 11, 2026