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.
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
v2tov3, 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_tailwind_4-0.1.2.tar.gz.
File metadata
- Download URL: django_tailwind_4-0.1.2.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d58efe47c61339e98673c08cc6da49a9d592898216be0e7c83ace4572817bec0
|
|
| MD5 |
38b990e0d9833730bb06d7332e39ffe0
|
|
| BLAKE2b-256 |
5ab307d880cff336a79ae7a2d123a1d53dc9e9d3c81f2f8f63c6bf03f0993a6f
|
File details
Details for the file django_tailwind_4-0.1.2-py3-none-any.whl.
File metadata
- Download URL: django_tailwind_4-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ab6d0455048754ed761099376c567ec8f2cbc337683acad646afead3d52fc8b
|
|
| MD5 |
926ea2c315e01be32bb672551b9c34f1
|
|
| BLAKE2b-256 |
e7db86b3dffc8fa20b16c5377948356f7523c7f9ca98dfda5cbdb3666e69cfde
|