$myColor: red;
h1 {
$myColor: green;
color: $myColor;
}
p {
color: $myColor;
}
h1 {
color: green;
}
p {
color: red;
}
<!DOCTYPE html>
<html>
<link rel="stylesheet" href="mystyle.css;?>">
<body>
<h1>Hello World</h1>
<p>This is a paragraph.</p>
</body>
</html>