O'Reilly logo

Pragmatic Guide to Sass by Michael Lintorn Catlin, Hampton Catlin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Part 3Compass

Compass is a library of mixins, functions, and other useful extensions to Sass. Chris Eppstein created Compass and maintains it to this day. Compass is a toolkit that any Sass-master should have handy. Because of its value in Sass development, we’ve devoted a whole chapter to some of its features—but it’s a mere sampling of what Compass has to offer. Check out the Compass website for more.[8]

Make sure RubyGems is up-to-date, then install the Compass gem.

 
gem update --system
 
gem install compass

Then, compile your style sheets with --compass.

 
sass --compass myfile.scss myfile.css
 
sass --compass --watch .

Here’s a summary of what we’ll look at in this part.

  • First, we’ll look at how to set up a Compass project in Task 25, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required