Skip to main content

Tailwind 4 CSS Framework for Django projects

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_tailwind_4-0.1.4.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_tailwind_4-0.1.4-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file django_tailwind_4-0.1.4.tar.gz.

File metadata

  • Download URL: django_tailwind_4-0.1.4.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for django_tailwind_4-0.1.4.tar.gz
Algorithm Hash digest
SHA256 01bc1f64a8867e9258b97218bf79a42e9d2f29073423d3d55c4f4f2666d5ed58
MD5 ab5b97109cd44203e3d3d3a6b12c6e0f
BLAKE2b-256 0125db0a2cf3180716361da2c27d7051a11b041ed1dfad436d1e85bbca440b39

See more details on using hashes here.

File details

Details for the file django_tailwind_4-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_tailwind_4-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e1972c19eef98582f7d92c694af27757fedd7c354c1f4e3b36b4d45e82431bf6
MD5 753054922f7da4bf280f37951273453d
BLAKE2b-256 e59f57a654404a5cd50042498d4ecd2440ea9ecdac5ffe730981fd816ebdcb8a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page