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

[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[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.0.tar.gz (8.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.0-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_tailwind_4-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Darwin/24.2.0

File hashes

Hashes for django_tailwind_4-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e221b70ed05772628d3515e836845e288994b1c3273575066c48739d8d41f551
MD5 ca4e8409aba4e81f3454a6cbd1c1b9b6
BLAKE2b-256 23f7519f57bc0423569bf699544d043b4a3eea038b26686e9d27d29fa24d0cb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_tailwind_4-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Darwin/24.2.0

File hashes

Hashes for django_tailwind_4-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b11d8fb8186d3e63f70706e0330fce77fb5f044f0f705215b46771213d0799e
MD5 c096e35e102907441f60f1c5adb0383c
BLAKE2b-256 fd975bb4b295b5a35e797de97e50bb8224ace90dbb76a98b3c8f275564a2eba2

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