Skip to main content

Tailwind CSS integration for Django a.k.a. Django + Tailwind = 💚

Note: This is a maintained fork of Tim Kamanin's original django-tailwind project. The original project is no longer maintained. This fork updates the project to work with the latest version of Tailwind CSS while preserving the original functionality.

Django Tailwind Demo

Goal

This project aims to provide a comfortable way of using the Tailwind CSS framework within a Django project.

Features

  • An opinionated Tailwind CSS setup that makes your life easier;
  • Hot reloading of CSS, configuration files, and Django templates. No more manual page refreshes!
  • Out of the box support for CSS imports, SASS-like variables, and nesting;
  • Includes official Tailwind CSS plugins like typography, form, line-clamp, and aspect-ratio;
  • Supports the latest Tailwind CSS v4.x;

For instructions on upgrading from v2 to v3, see this post on Tim Kamanin's blog.

Requirements

Python 3.10 or newer with Django >= 3.2 or newer.

Documentation

The full documentation is at https://django-tailwind-4.readthedocs.io

Installation

Via PIP:

pip install django-tailwind-4

[RECOMMENDED IN DEV] If you want to use automatic page reloads during development use the [reload] extras, which installs the django-browser-reload package in addition:

pip install 'django-tailwind-4[reload]'

Check docs for the Installation instructions.

Bugs and suggestions

Please see CONTRIBUTING.

2019 - 2023 (c) Tim Kamanin - A Full Stack Django Developer

2024 - present (c) [Ryan Sevelj] - Fork Maintainer

Metadata

Release files for django-tailwind-4 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tailwind-4 0.1.4
File Size Uploaded
django_tailwind_4-0.1.4.tar.gz 11.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-tailwind-4 0.1.4
File Interpreter ABI Platform
django_tailwind_4-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 26.6 kB

Release files / django_tailwind_4-0.1.4.tar.gz

Download URL django_tailwind_4-0.1.4.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
01bc1f64a8867e9258b97218bf79a42e9d2f29073423d3d55c4f4f2666d5ed58
BLAKE2b-256 checksum
How to use checksums
0125db0a2cf3180716361da2c27d7051a11b041ed1dfad436d1e85bbca440b39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / django_tailwind_4-0.1.4-py3-none-any.whl

Download URL django_tailwind_4-0.1.4-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1972c19eef98582f7d92c694af27757fedd7c354c1f4e3b36b4d45e82431bf6
BLAKE2b-256 checksum
How to use checksums
e59f57a654404a5cd50042498d4ecd2440ea9ecdac5ffe730981fd816ebdcb8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page