3 ms·
How do you integrate tailwind and django? As far as I know (which isn't very much), tailwind encourages the use of "components" which comes very naturally with
by powersnail 4y ago
How do you integrate tailwind and django? As far as I know (which isn't very much), tailwind encourages the use of "components" which comes very naturally with other frontend frameworks. But with django, do you put each component into a template, like `<button class="rounded xxx"></button>` and `{% include "button.html" %}` when you use a button?
- julianwachholz 4y agoThat's one way. Or you use something like slippers[0] or Tailwind components using @apply. [0] https://mitchel.me/slippers/docs/introduction/ https://mitchel.me/slippers/docs/introduction/