Skip to main content

Sass Script

SASS uses a small set of extensions known as SassScript which can be included in the SASS documents to compute variables from property values and uses properties of variables, arithmetic, and other functions. SassScript can also be used with selectors and property names while using mixins (Mixins allows to re-use CSS styles throughout the stylesheet).

The following table lists some of the CSS extensions used in SASS:

CSS ExtensionDescription
Interactive ShellIt evaluates SassScript expression using command line.
VariablesIt represents the data such as numeric values, characters or memory addresses.
DataTypesIt declares data type for every data object.
OperationsIt provides operations such as number, color, string, boolean and list operations.
ParenthesesIt is pair of signs which are usually marked off by round brackets ( ) or square brackets [ ].
FunctionsIt supports for the use of functions by providing some keyword arguments.
InterpolationIt provides SassScript variables and property names using #{ } syntax.
& in SassScriptIt allows nesting of properties into another properties which leads to group of another related code.
Variable DefaultsIt allows nesting of properties into another properties which leads to group of another related code.