Notes

Sass: Working with Libraries

Edit on GitHub

CSS & Sass

By far the most popular Sass based UI framework is Bootstrap. Another one is Foundation.

Sass libraries are more like a collection of mixins, funtcions and classes. The most common is Compass. Then there is Bourbon.

Installing Bourbon

1sudo gem install bourbon

Including Bourbon in a Project

just include the bourbon .scss file in the main stylesheet.

1@import "bourbon_bourbon.scss";

Benefits

  • You can use all the new CSS3 features without having to worry about backwards compatibility as Bourbon and Compass take care of adding vendor prefixes.
  • Font families and their fall back families are defined as variables so you don’t have to type your long list.

Related