dogweather

dogweather

Differences between Tailwind and Bootstrap?

Can someone sum up the differences between Tailwind and Bootstrap? I did two web searches and skimmed five articles, and they’re all super-spammy.

Is Tailwind less semantic? Does it encourage you to not create your own classes? Is that a problem?

Most Liked Responses

trisolaran

trisolaran

I can try: Bootstrap is a component library with some utility classes on the side, whereas tailwind is a pure utility library with no components.

With Bootstrap, you get a set of predefined components you can use right away (buttons, modals, cards etc.). Tailwind on the other hand doesn’t have any components, but it makes it relatively easy to build them by offering utility classes, which allow you to style your HTML without having to write almost any CSS at all.

Bootstrap does have some utility classes, but it doesn’t embrace the concept as much as tailwind.

I came to tailwind from bootstrap and I wasn’t very happy initially because, even though I really liked the idea of styling everything using classes, I was missing a set of predefined components I could just use. I don’t like having to style my own buttons, modals and so on.

Luckily, if you want to use off-the-shelf components, there are excellent component libraries based on Tailwind. The best one IMO is daisyui :heart:

LostKobrakai

LostKobrakai

I usually drive the point home with this: Tailwind classes abstract CSS, Bootstrap classes abstract complete and pieces of (prebuild) UI. If the goal is to use CSS features to build UI then Tailwind is great. If the goal is to not need to bother doing that then Bootstrap is likely a better fit. Component libraries like daisy UI are great because it’s usually easier to fall back from the “don’t bother” to “ok I need to bother” state for required customizations than it would be with e.g. Bootstrap.

olivermt

olivermt

Ooooh I should get it published right after xmas. Just been a nuts period in my dayjob last couple of months

Where Next?

Popular in Questions Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: The documentation above suggests that while ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

Other popular topics Top

albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New

We're in Beta

About us Mission Statement