Pragmatic Programmers

Pragmatic Guide to Sass

by Hampton Caitlin & Michael Lintorn Caitlin

About the Book

Written by Sass creator Hampton Catlin and Michael Lintorn Catlin, Pragmatic Guide to Sass shows you how to improve your CSS, from the basics to advanced topics, from first installation to sprucing up your buttons. You’ll see how to code the right way in Sass thanks to short, clear examples. Two-page spreads show the explanation on one side and code examples on the other. You’ll learn how to improve your pages in minutes.

You’ll be able to perform amazing feats of CSS including using variables, calculating layouts, and modifying colors. Did you ever want to make a color 10% less saturated? We’ll show you how to do that without needing a calculator.

Plus, learn about Compass, Sass’s library of carefully built hacks, reusable parts, and frameworks. Find out how to shortcut cross-browser issues and develop mixins for shortening text and making lists more exciting. You’ll wonder how you spent all those years styling sites without it!

Make things even easier with Blueprint, and discover how to use its predefined classes that you can apply to your Web site. From selector scoping to bundling, debugging, and designing custom functions, Pragmatic Guide to Sass will help you build the pages you’ve always wanted.

Pragmatic Guide to Sass

Buy now!


Pragmatic Guide to Sass is a snappy little book that effectively hits you with the right dose of Sass magic to either pick up Sass as a newcomer or give you a refresher if you’re already using it. The guide is written in a style that’s both a tutorial and a reference at the same time, and it’ll be a handy go-to book for anyone working with Sass, whether on a daily basis or only on rare occasions. It gets two thumbs-up from me. —Peter Cooper Editor "Ruby Inside" and "HTML5 Weekly"

Sass is the best way to write maintainable CSS. This Pragmatic guide will get you up to speed on Sass’s most powerful features, including nesting, variables, and mixins—an invaluable reference. —Sam Stephenson Creator of Sprockets and the Rails asset pipeline

Michael and Hampton, in Pragmatic Guide to Sass, have put together the most comprehensive and thought-out guide to Sass to date. No matter what server-side technology you use, Sass can be used in anyone’s development stack to help organize your CSS. Pragmatic Guide to Sass shows you the best practices in DRYing up your CSS with the power of Sass. It teaches you how to become a CSS heavyweight without the bloated CSS. This book should be on every web developer’s shelf (and e-reader). —Andrew Chalkley technical writer,

Chock-full of unexpected goodies such as extras on Compass and Haml, Pragmatic Guide to Sass is hands-down the best Sass resource printed to date—a must-read for web developers and smart designers. —Dan Kissell


About the Authors

Hampton Catlin is the inventor of Sass, a CSS generating language, and the Haml markup language. He is the original creator of Wikipedia Mobile ( and is also the creator of several successful iPhone applications including Dictionary!

Michael Lintorn Catlin is a Biologist and PhD dropout. He holds one masters from the University of Oxford in biochemistry and another masters from the University of Cambridge in developmental biology.