DEV Community

Pablo Herrero
Pablo Herrero

Posted on

Alternative to Bootstrap??? πŸ€”

hey!

As a newbie, when I started in web development I went straight to Bootstrap.

Today I found this post where they say it is outdated.

Tell me, what should I wear? What is trend? Pure CSS? Some other framework?

Thanks, as always.

Top comments (40)

Collapse
 
jwp profile image
John Peters • Edited

My thoughts are that using Html 5 Grid and Scss have become so powerful and easy, that other 3rd party style frameworks are dead.

Not everyone agrees but in just 9 months of using only the Html 5 Grid and Scss, I no longer have a reason for anything else.

It's the same thing with querySelectorAll deprecating JQuery.

The Html 5 Grid has deprecated 3rd party CSS frameworks as well as media queries.

But don't take my word, just dive deep into Scss and Html 5 Grid and prove it to yourself.

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
giorgosk profile image
Giorgos Kontopoulos πŸ‘€

I believe John Peters above is talking about NOT using bootstrap grid but vanilla CSS Grid

Collapse
 
promikecoder2020 profile image
ProMikeCoder2020

Bro jQuery is not just about querySelectorAll. It has lots of other nice features

Collapse
 
jwp profile image
John Peters • Edited

True, but in my current project none of them are needed. Most of what I need is in Angular.

Thread Thread
 
promikecoder2020 profile image
ProMikeCoder2020

Sure... When you use a modern front-end framework you definitely don't not should need something like jQuery

Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn

It's not ’outdated’ so much as ’old news’ and ’limiting’. Bootstrap is perfectly serviceable, it’s just big, not β€˜new’ (and therefore not β€˜cool’, lots of developers unfortunately use this as a measure of how good something is instead of simply evaluating it on it’s merits), and imposes some potentially undesirable limitations (though one of the big ones, dependence on JQuery, is planned to be removed in Bootstrap 5, when that eventually comes out...).

Tailwind is one of the better β€˜modern’ options right now if you’re looking for building blocks for your own design, it’s reasonably lightweight and very powerful.

For cases where you just need a style β€˜reset’ that gives you consistency across browsers for simple sites, I’d recommend Water.css, it’s tiny, looks reasonably nice, and works almost everywhere.

I’ve also heard good things about Bulma, though unlike the others I’ve never touched it myself so I can’t really comment on how good it is.

Collapse
 
bonfiglioalessio profile image
<A.BONFIGLIO/>

I suggest Tailwind CSS.
There are also Bulma css, foundation, semantic ui, UI kit, materialize css, skeleton, Spectre and other πŸ˜‚πŸ˜‚πŸ”₯

Collapse
 
pclundaahl profile image
Patrick Charles-Lundaahl

I would recommend you worry less about what's trendy, and pay more attention to the specific problems you are trying to solve.

When Bootstrap was first released, it solved a few key problems. Off the top of my head, I believe the main ones are probably:

  1. Grid-based layouts
  2. Easy-to-use modals/sticky widgets
  3. A pre-built component library

These days, with flexbox, css grid, and position sticky, problems 1 and 2 are largely solved using plain CSS. So, if those are the main things you're concerned with, I'd suggest just using straight CSS. Alternatively, if you're after a pre-built component library (and you like what Bootstrap has to offer), then by all means use it!

Tailwind, SCSS/LESS, and other CSS tools all solve a slightly different set of problems, or solve them in different ways. I think that, rather than asking what's trendy, it would be more valuable to spend some time with a few of them to figure out what those problems are, and if you like the way they solve them (and the costs that come with them).

As an aside, if you're focusing on front-end, you honestly can't go wrong with time spent learning vanilla CSS. You might not use it all the time in your day-to-day job, but understanding how the cascade works or how to create animations without resorting to JS are really useful skills.

Collapse
 
madza profile image
Madza • Edited

I believe Atomic CSS holds the most future potential πŸ˜‰
For now its Tailwind, especially when paired with Svelte πŸ”₯πŸ”₯

For more, I did an article about styling options πŸŽ¨πŸ–ŒπŸ“š

Collapse
 
nikhilmwarrier profile image
nikhilmwarrier • Edited

Hey, I ❀️ materializecss, It's kinda cool and flat and modern....
Also, check out Halfmoon. It is a modernized Bootstrap with builtin dark mode...

Collapse
 
moopet profile image
Ben Sinclair

I would say to use Sass until nesting becomes part of CSS, and to write semantic markup. You don't need anything else, and things like Bootstrap hold back long-term progress in favour of short-term ease.

Collapse
 
pclundaahl profile image
Patrick Charles-Lundaahl

+1 on this.

I've known a couple of people who lean on Bootstrap and use it to avoid learning the fundamentals. I know there are a million things to learn, and it's easy to feel like you're missing out on the latest shiny tool, but I genuinely believe it's unprofessional to not gain at least base proficiency with the fundamentals.

Collapse
 
tombohub profile image
tombohub • Edited

He say she say...
Go to the npmjs.com/package/bootstrap and you will see that its downloaded 2mil + weekly. More than any other framework so its far from dead.
screen

Collapse
 
theonlybeardedbeast profile image
TheOnlyBeardedBeast

Wtite your own πŸ™‚

Collapse
 
louislow profile image
Louis Low

Yeah, this way you don't have to argue which features you like or hate or even don't have.

Collapse
 
theonlybeardedbeast profile image
TheOnlyBeardedBeast

Exatly, and you wont have to handle unused code.

Collapse
 
tgotwig profile image
Thomas Gotwig • Edited

Shoelace is more modern I think, because it builds up on Web Components πŸ“¦

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

If I had to go most radical, I would say,

  • normalize.css or CSS reset
  • web component library
  • atomic CSS (but I don't like Tailwind in that I have to set up CSS purge)
Collapse
 
wonder2210 profile image
Wonder2210

Well there are many opinions about , use Sass is most powerful than any 3rd party library and you will actually writing "CSS " with any library you will be using just classes that they have predefined, but I understand that use a library is so useful and fast , for many reasons , they are responsive out of the box , you apply a class and that's it , but i highly suggest to use pure CSS it will level up your skills , but anyways if you want to use a library , i have heard good things from Bootstrap 5 , and personally i like Tailwind and Semantic UI , so go ahead and use whatever fits with you but don't skip the fundamentals of CSS and level up your skills

Collapse
 
bakemywp profile image
Bake My WP

Hey Pablo! Today with the usage of Flexbox you can solve the most common problems that known frameworks used to had a workaround for them. Problems like equal height of boxes are now solved with flexbox so you can create your own framework for usage in any project. This is what we did internally and worked pretty well so far!

Collapse
 
giorgosk profile image
Giorgos Kontopoulos πŸ‘€ • Edited

I think you should try a few approaches and see what suits you better and makes you more productive.
Some suggestions are bootstrap 5, tailwind, bulma or any other suggestions you can find dev.to/theme_selection/best-css-fr...

But in general I think plain old CSS and new CSS3 is so powerful nowadays (with flexbox, grid and pretty much good support across all modern browsers) that you are better of using vanilla css and perhaps a preprocessor (SCSS, postcss) instead of trying to learn how each framework does things.

Thus learning the basics of CSS is invaluable for your future growth as frameworks might come and go but CSS will probably not change completely, will just improve.

Collapse
 
ginaldolaranjeiras profile image
Ginaldo Laranjeiras

There is PureCSS and my favorite, Material Design for Web.

Some comments may only be visible to logged-in visitors. Sign in to view all comments.