color variables sass code example
Example 1: scss variables
$base-color: #c6538c;
Example 2: variables scss
// SCSS variables
$darkcolor: #605C4D;
$large: 350px;
section{
background-color: $darkcolor;
height: $large;
}
Example 3: Sass Variables
$myFont: Helvetica, sans-serif;
$myColor: red;
$myFontSize: 18px;
$myWidth: 680px;
body {
font-family: $myFont;
font-size: $myFontSize;
color: $myColor;
}
#container {
width: $myWidth;
}