scss variables
$base-color: #c6538c; $border-dark: rgba($base-color, 0.88); .alert { border: 1px solid $border-dark; }
Source: sass-lang.com
variable in scss
/*This is done by naming a variable with a dollar symbol $ and then referencing it elsewhere in your code. */ $primary-color: #24a0ed; .text { color: $primary-color; } button { color: $primary-color; border: 2px solid $primary-color; }
Source: www.freecodecamp.org