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, ...

Get Pragmatic Guide to Sass now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.