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.1.tar.gz (4.5 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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_tailwind_4-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 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.1.tar.gz
Algorithm Hash digest
SHA256 dc4124260d519bc026928f0c472c113a564a9bf52393374581af8d7f04251d2a
MD5 ea6e5637bb0e3abfd4e4faa3c1a0ede2
BLAKE2b-256 c4b77cbb8bf83e14db21aec3b9039c887b00d79d9dd06f6f725c3d31518e36bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_tailwind_4-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c6175da7951281db40166fefa0f780ccf8efd593c534f107903d0b3d214e8a4
MD5 bf636ff507ec3993a8706f365da17783
BLAKE2b-256 9226e88760f6e901b81734bd99729799fc243ba0fd5ffa1f9a0691e80b3fae3c

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