#How to style django-allauth form fields with Tailwind CSS?

1 messages · Page 1 of 1 (latest)

surreal atlas
#

Hi everyone,

I’m using django-allauth for authentication in my Django project, and I want to style the login/signup forms using Tailwind CSS.

The default allauth forms don’t have Tailwind classes, and I want to customize things like input fields, labels, buttons, etc., to use Tailwind utility classes.

What’s the best practice for applying Tailwind styles to django-allauth forms? Should I:

  • Override the templates and write raw HTML with Tailwind classes?

  • Customize form widgets in Python to add Tailwind classes?

  • Use a package or a third-party solution?

If you have example code snippets or tips on customizing allauth forms with Tailwind CSS, I’d really appreciate it!

Thanks!

calm monolith