Django Tailwind Cli

screenshot of Django Tailwind Cli

Django and Tailwind integration based on the prebuilt Tailwind CSS CLI.

Overview

The Django Tailwind CLI library provides an integration of Tailwind CSS for Django projects using precompiled versions of the Tailwind CSS CLI. The goal of this library is to offer a simple and efficient Tailwind integration for Django, inspired by Tailwind integration for Phoenix, eliminating the need for a node installation.

Features

  • Simplest Integration: Provides the simplest Tailwind CSS integration for Django projects.
  • Management Commands: Includes commands for starting Tailwind CLI in watch mode, building production-grade CSS files, and starting a debug server.
  • Configuration Options: Allows customization of the library to fit your project's specific needs.
  • Template Tag: Includes a template tag for easy inclusion of the Tailwind CSS file in your project.
  • Base Template: Provides a base template for your Django project.
  • Sane tailwind.config.js: Activates all official plugins and includes a simple HTMX plugin.
  • PyCharm Support: Includes a management command to install a workaround for supporting Tailwind CLI in PyCharm.

Summary

The Django Tailwind CLI library simplifies the integration of Tailwind CSS into Django projects by providing a straightforward setup process and essential features such as management commands, configuration options, template tags, and PyCharm support. By following the installation guide and leveraging its key features, developers can efficiently incorporate Tailwind CSS for their Django applications.