| in blog | timonweb.com |
|---|---|
| original entry | Django-Tailwind v4.4: Now with Zero Node.js Setup via Standalone Tailwind CLI |
I've just released version 4.4 of Django-Tailwind, and it comes with a major new feature: you can now use Tailwind CSS without needing Node.js.
This is made possible by another one of my packages — Pytailwindcss — which brings support for Tailwind's Standalone CLI into the Python ecosystem.
The Tailwind Standalone CLI gives you the full power of the Tailwind CLI in a single, self-contained executable — no Node.js or npm required.
Now, when you initialize a new Tailwind project using the Django-Tailwind init command:
python manage.py tailwind init
You'll see a new setup option:
Choose template:
1 - Tailwind v4 Standalone - Simple and doesn't require Node.js
2 - Tailwind v4 Full - All the bells and whistles, requires Node.js
3 - Tailwind v3 Full - Legacy template for Tailwind v3 projects, requires Node.js
Enter choice [1-3]:
Choose the Standalone option if:
It's a great choice for lightweight or minimal projects that just need Tailwind's core styling power.
Yes — you can use the Standalone CLI in your existing Django-Tailwind project, as long as you're not relying on any Tailwind CSS plugins (like DaisyUI).
If your current setup uses pure Tailwind, just add the following to your settings.py:
TAILWIND_USE_STANDALONE_BINARY = True
TAILWIND_STANDALONE_BINARY_VERSION = "v4.1.17"
Then install the latest binary with:
python manage.py tailwind install
After that, you can run:
python manage.py tailwind start
python manage.py tailwind dev
python manage.py tailwind build
These commands will now use the Standalone Tailwind binary instead of the Node.js-based setup.
Give Django-Tailwind v4.4 a spin and let me know how it works for you!
Check out the project on GitHub or install it from PyPI.