Variables: $ The most straightforward way to use SassScript is to use variables. Variables begin with dollar signs, and are set
mix($color1, $color2, $weight:50%) Mixes two colors together. Specifically, takes the average of each of the RGB components
@while The @while directive takes a SassScript expression and repeatedly outputs the nested styles until the statement
zip($lists...) Combines several lists into a single multidimensional list. The nth value of the resulting list is a space
Pattern: :visited Definition: The :visited
saturate($color, $amount) Makes a color more saturated. Takes a color and a number between 0% and 100%, and returns a color
type_of($value) Returns the type of a value.
Interactive Shell You can easily experiment with SassScript using the interactive shell. To launch the shell run the sass command-line with
@debug The @debug directive prints the value of a SassScript expression to the standard error output stream. It’s
Operations All types support equality operations (== and !=). In addition, each type has its own operations that it
Page 3 of 15