Need advice about which tool to choose?Ask the StackShare community!
Bourbon vs Less: What are the differences?
Developers describe Bourbon as "A lightweight mixin library for Sass". Bourbon is a library of pure sass mixins that are designed to be simple and easy to use. No configuration required. The mixins aim to be as vanilla as possible, meaning they should be as close to the original CSS syntax as possible. On the other hand, Less is detailed as "The dynamic stylesheet language". Less is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable and extendable.
Bourbon and Less can be categorized as "CSS Pre-processors / Extensions" tools.
"Simple mixins" is the top reason why over 13 developers like Bourbon, while over 213 developers mention "Better than css" as the leading cause for choosing Less.
Bourbon and Less are both open source tools. Less with 16.1K GitHub stars and 3.45K forks on GitHub appears to be more popular than Bourbon with 8.86K GitHub stars and 916 GitHub forks.
GoSquared, Weebly, and eTobb are some of the popular companies that use Less, whereas Bourbon is used by DeveloperTown, Helpful, and devbase.io. Less has a broader approval, being mentioned in 498 company stacks & 169 developers stacks; compared to Bourbon, which is listed in 25 company stacks and 12 developer stacks.
JSS is makes a lot of sense when styling React components and styled-components is a really nice implementation of JSS. I still get to write pure CSS, but in a more componentized way. With CSS post-processors like SASS and LESS, you spend a lot of time deciding where your .scss or .less files belong, which classes should be shared, and generally fighting the component nature of React. With styled-components, you get the best of CSS and React. In this project, I have ZERO CSS files or global CSS classes and I leverage mixins quite a bit.
Pros of Bourbon
- Simple mixins14
- Lightweight3
- No javascript3
Pros of Less
- Better than css215
- Variables177
- Mixins141
- Maintainable99
- Used by bootstrap79
- Open source55
- Extendable50
- Functions43
- Dynamic39
- Fast30
- CSS is valid LESS, very easy to pick up2