Skip to main content

Tailwind CSS Framework for Django projects

Project description

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

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 v3.x;

For instructions on upgrading from v2 to v3, see this post on my blog.

Requirements

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

Documentation

The full documentation is at https://django-tailwind.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 - 2025 (c) Tim Kamanin - A Full Stack Django Developer

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.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

django_tailwind-4.0.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file django_tailwind-4.0.1.tar.gz.

File metadata

  • Download URL: django_tailwind-4.0.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/24.3.0

File hashes

Hashes for django_tailwind-4.0.1.tar.gz
Algorithm Hash digest
SHA256 e1f411246208056e8903f304f80a548eac2e5a3c4b6c4adb14eff21ac2dfdd6d
MD5 004f342d7b0d4844f36d3568996f72ef
BLAKE2b-256 e51433694e3e5ac431991b7ea2eefe8d2460a7e555f2d6e6a4b4780e718c54d9

See more details on using hashes here.

File details

Details for the file django_tailwind-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: django_tailwind-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/24.3.0

File hashes

Hashes for django_tailwind-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33e5dd5aadd5aa6facf4bddab9144a40cb501e486d4970b93e2853dbdbef4f67
MD5 591a786aa0f1f03a75c6c1c2f6f0e61b
BLAKE2b-256 cd8f7a651007ab9bf552221ae8adc9305c7d21113a9814eb38153b5fdb4ef5eb

See more details on using hashes here.

Supported by

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