Ideas how to support Tailwind CSS 4.x in django-tailwind-cli
Monday, January 20, 2025
Tailwind CSS released its first beta version at the end of November of last year. Since then, I have been thinking about how to implement the changes in the Django library django-tailwind-cli. Tailwind CSS 4.0 includes some interesting and substantial changes: Instead of a tailwind.config.js file, you can configure all of your customizations directly in the CSS file where you import Tailwind. Automatic source detection. Simplified theme configuration and CSS-first configuration make a lot of customization steps that I normally add to tailwind.