Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using SASS/LESS with AngularUI [closed]

I have never used a css preprocessor.

I want to use angularjs with angularUI (bootstrap) and I would like to know wether there is any disadvantage in using SASS vs LESS. Or is there a total independency and I am totally free to use SASS or LESS with AngularJS and AngularUI bootstrap.

Maybe AngularUI has builtin support for SASS or LESS so I should favor one of those?

like image 858
HelloWorld Avatar asked Feb 24 '14 19:02

HelloWorld


1 Answers

Angular-UI is not dependent on any preprocessor, only the rendered CSS. You can use whatever you want, SASS, LESS, or the CSS straight from Bootstrap, as long as it ends up as valid Bootstrap 3 CSS.

Now that SASS is officially supported by Bootstrap (in a separate github repo), you're free to choose whichever (SASS or LESS) you want. There have been some articles showing the strengths and weaknesses between the two (for example), but in the end there is no clear advantage of one over the other. The main reason it's great to have options is that if you're already using one, you don't have to use the other when including Bootstrap.

For what it's worth, it seems like people are starting to prefer SASS over LESS these days.

like image 82
moribvndvs Avatar answered Oct 23 '22 07:10

moribvndvs