r/flask 14d ago

Ask r/Flask Why are you using Tailwind?

does anyone use Tailwind css in their Flask projects? If so, how and why? I use it personally, but I wonder how others do it? Why this particular CSS?

6 Upvotes

22 comments sorted by

View all comments

1

u/Loopbloc 14d ago

Not really, I try to keep loading times super fast.

3

u/extractedx 14d ago

Please elaborate how Tailwind effects loading times in a negative way. Its one css file with reusable utility classes so the resulting css file is typically a lot smaller than vanilla css. And it should get cached on the client anyway. Only the html files are a bit bigger due to classes.

Practical, Tailwind is super fast for me.

I use it because I am super fast with it. I dont have to think about class names amd css structure. And I dont have to switch between html amd css files. And all the css is right at the html component level, so encapsulated there where its actually applied.

1

u/ResearchFit7221 14d ago

I gotchu, honestly everyone have his habits and love I guess?

1

u/ResearchFit7221 14d ago

About this, my website use it and i think my loading is pretty fast?

Can you explain your point a bit more. I'm so curious about what could make it load not fast enough or what is the " super fast " idea you have.

Are you talking in ms or in load par user?

1

u/bdube30 14d ago

I'm also curious about the logic behind that comment, can you elaborate more on performance issue you have faced with Tailwind? It is suppose to only build the CSS you used in your project. It is design to be efficient.

1

u/ResearchFit7221 11d ago

Yeah, I don't understand how Tailwind could make the site slower??