sass Variables Sass


Variables are used to store a value once which will be used multiple times throughout a Sass document.

They are mostly used for controlling things such as fonts and colors but can be used for any value of any property.

Sass uses the $ symbol to make something a variable.

$font-stack: Helvetica, sans-serif
$primary-color: #000000

  font-family: $font-stack
  color: $primary-color