Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 4 supports LESS?

As nowadays bootstrap team announced the version 4 alpha which natively uses SASS as CSS preprocessor. Is this mean it hasn't any LESS support?!

like image 503
bobsilon Avatar asked Sep 03 '15 11:09

bobsilon


People also ask

Is Bootstrap support less as its preprocessor?

You have to remember that Bootstrap 4 is in its Alpha phase. Currently it does not support LESS, as Bootstrap's blog entry on Bootstrap 4 Alpha states: Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join an increasingly large community of Sass developers.

Is Bootstrap 4 or 5 better?

It has jquery and all related plugins. Bootstrap 4 supports both IE 10 and 11. Bootstrap 5 doesn't support IE 10 and 11. Radio buttons, checkboxes have different look in different OS and browsers.

Does Bootstrap use less or Sass?

Sass is compiled down to CSS before it's used on web pages. Until Bootstrap version 3. x, you had a choice between CSS preprocessors: Less or Sass. But since version 4, Bootstrap uses only Sass.

What changed in Bootstrap 4?

With Bootstrap version 4, an improvement has been made to make it a 5 grid tier system, xs, sm, md, lg, and xl. The new grid tier, xl, extends the media query range all the way down to 544px. The improved grid system also offers the following: Support for flexbox in the grid mixins and predefined classes.


2 Answers

You have to remember that Bootstrap 4 is in its Alpha phase. Currently it does not support LESS, as Bootstrap's blog entry on Bootstrap 4 Alpha states:

Moved from Less to Sass. Bootstrap now compiles faster than ever thanks to Libsass, and we join an increasingly large community of Sass developers.

However, version 4's Getting Started page does still give LESS a mention (although I imagine this is a copy/paste oversight):

npm

Bootstrap’s package.json contains some additional metadata under the following keys:

  • less - path to Bootstrap’s main Less source file

  • style - path to Bootstrap’s non-minified CSS that’s been precompiled using the default settings (no customization)

Whether it will support LESS in the future cannot be really determined without some form of official yay or nay, but currently it doesn't look like there are any plans involving it.

like image 194
James Donnelly Avatar answered Sep 28 '22 13:09

James Donnelly


The Bootstrap team decided not to include a Less version with the v4.0 launch but there is an unofficial Bootstrap 4 Less port available. (Full disclosure: I’m the author.)

Hopefully they will have an official Less port like they did for Sass in the future.

like image 9
seanCodes Avatar answered Sep 28 '22 13:09

seanCodes