Wel come to the Pragmatic Guide to Sass. Sass (Syntactically
Awes o me Style Sheets) enables you to do amazing things
with your style sheets, helping you describe how HTML is
laid out on a web page. Sass is an alternative way of writing
CSS.
“What’s wrong with regular ol’ CSS?” we hear you cry. The
fact is that CSS, with all its power and elegance, is missing
some crucial, simple elements that other types of development
take for granted. CSS can also be a bit complicated to
read: Sass fixes that.
Most programmers are familiar with the concept of DRY—
Don’t Repeat Yourself. It saves time and effort when writing
code. A core philosophy of Sass is to reduce repetition in
style sheets, and we’ll be coming back to DRY a few times
throughout the guide.
Sass isn’t really a replacement for CSS—it’s a way to help
us write better CSS files, which is essential for large projects.
Sass helps us write clear, semantic style sheets. Sass updates
CSS development for the future.
Written by Sass creator Hampton Catlin and Michael Lintorn Catlin, Pragmatic Guide to Sass shows you how to you 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.
What You Need:
An installation of Sass and Compass
Some basic command line knowledge