Book Image

Sass and Compass for Designers

By : Ben Frain
Book Image

Sass and Compass for Designers

By: Ben Frain

Overview of this book

Table of Contents (17 chapters)
Sass and Compass for Designers
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The Sass interactive shell


By now, hopefully the Command Line Interface (CLI) doesn't seem like such a scary place. Just as well. There's a great and lesser-known Sass feature called the Sass 'interactive shell' that requires it. Let's give it a whirl.

Open the command line. Now type:

sass –i

A double-angled bracket will display like this:

>>

Excellent, we're in. Now, let's get geeky. Type this and press Enter:

mix(#fff, pink)

A result is 'printed' back on the command line:

#ffdfe5

How about that? The Sass interactive shell allows SassScript computations to be performed directly on the command line. Therefore, alongside any of the math we looked at in the last chapter, any of the Sass-based (but not Compass-based, more of that in a moment) color functions from Chapter 4, Manipulate Color with Ease, can be used directly in the Sass interactive shell too.

To finish working in the Sass interactive shell, just press Ctrl + d together to be returned to the standard command line.

I'll be honest, with...