use variables sass code example
Example 1: scss variable to css variable
$color-black: #000000;
body {
--color: #{$color-black};
}
Example 2: Sass Variables
$myFont: Helvetica, sans-serif;
$myColor: red;
$myFontSize: 18px;
$myWidth: 680px;
body {
font-family: $myFont;
font-size: $myFontSize;
color: $myColor;
}
#container {
width: $myWidth;
}