THE WORLD'S LARGEST WEB DEVELOPER SITE

Sass Tutorial

Sass is a CSS pre-processor.

Sass reduces repetition of CSS and therefore saves time.


Sass Example

/* Define standard variables and values for website */
$bgcolor: lightblue;
$textcolor: darkblue;
$fontsize: 18px;

/* Use the variables */
body {
  background-color: $bgcolor;
  color: $textcolor;
  font-size: $fontsize;
}

Run Example »

Start learning Sass now!


Sass Function References

At W3Schools you will find complete references of all Sass functions with syntax and examples.

Sass String Functions

Sass Numeric Functions

Sass List Functions

Sass Map Functions

Sass Selector Functions

Sass Introspection Functions

Sass Color Functions