Globally set attrs for form templates

I’m looking for something like this but natively in Django.

Is there any way to globally define the CSS classes associated with a widget? Or do I need to subclass each widget and use them instead?

Context: Currently, I’m using crispy forms for form styling but it requires to be tied to a CSS library. Most of my site is tailwind + some handwritten CSS. Just looking to see if I need to build a custom implementation (or crispy-tailwind) or if I need to get off of crispy-forms

If its different classes per widget that you’re looking for, then yes - custom widgets would seem to be the way to go.

But if it’s the same classes that you want to apply to every widget, then you might be able to subclass the Crispy field object and use it for all the form fields.