News for hackers. Stuff that matters.
Re:Goodbye CSS Modules, Hello TailwindCSS by SavantIdiot on Thursday November 04, 2021 @05:46PM (#29112896)
Why do people prefer Tailwind to Bootstrap (css only)? THey both seem really similar but I've been using Bootstrap so long that I haven't had the impetus to change.
Re:Goodbye CSS Modules, Hello TailwindCSS by deergomoo on Thursday November 04, 2021 @07:23PM (#29113669)
Bootstrap and Tailwind are very different, though newer versions of Bootstrap do have more utility classes like Tailwind.

Bootstrap provides pre-made visual components, which are useful for getting stuff built quickly but can be a huge pain to tweak (e.g. you want 99% of the styles but just need the padding to be slightly different in one instance).

Tailwind provides no pre-made visual components, but instead provides a sensible design system to keep things consistent, and either a much more pleasant and scalable way to write CSS, or a horrible class soup, depending on your opinion of utility classes.

Re:Goodbye CSS Modules, Hello TailwindCSS by SavantIdiot on Thursday November 04, 2021 @10:39PM (#29114903)
Thanks, that's a really clear answer. Now it's got me scratching my head. I like not having to make a lot of decisions, hence my affinity toward BS. But TW might be worth a spin.
Re:Goodbye CSS Modules, Hello TailwindCSS by thomasfortes on Thursday November 04, 2021 @06:55PM (#29113457)
Bootstrap is a fully opinionated framework, tailwind is far more versatile, it has his opinions, but they aren't set in stone in the way that bootstrap is.

You can build bootstrap in tailwind, but you can't build tailwind with bootstrap.

Both are tools to help you design something, but the tradeoffs of each one are quite different.

Re:Goodbye CSS Modules, Hello TailwindCSS by SavantIdiot on Thursday November 04, 2021 @10:40PM (#29114907)
> You can build bootstrap in tailwind, but you can't build tailwind with bootstrap.

Well put.