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 >= 3.2 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 - 2023 (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-3.8.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

django_tailwind-3.8.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_tailwind-3.8.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.5 Darwin/23.1.0

File hashes

Hashes for django_tailwind-3.8.0.tar.gz
Algorithm Hash digest
SHA256 31c2f4a7879d685c2de0feaf0b63f246200b37337bea4d7dbafb59bc3f10c008
MD5 fd0f15883ecc9910341644b78d733b90
BLAKE2b-256 3cee1065c57c87213f566d76b398f8391cd544380ef9661f7fdacdfe4264633c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_tailwind-3.8.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.5 Darwin/23.1.0

File hashes

Hashes for django_tailwind-3.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa969c5b95d314b173fe2b2ed2cb2c03f2e2c94fdc2c01ff73a993fa159085da
MD5 54d19a76f7c5b903aa0f2beb46b46acd
BLAKE2b-256 cf1420c40882d9ee91f7a2a20d3c0175cf813340c02ae31c975ce567de2c7c67

See more details on using hashes here.

Supported by

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