Answers for "how to declare a variable in SASS"

CSS
8

scss variable to css variable

$color-black: #000000;

body {
    --color: #{$color-black};
}
Posted by: Guest on June-07-2021
5

scss variables

$base-color: #c6538c;
Posted by: Guest on January-22-2020
1

how to declare a variable in SASS

$variablename: value;
Posted by: Guest on July-25-2021
1

variables scss

// SCSS variables

$darkcolor: #605C4D;
$large: 350px;

section{
	background-color: $darkcolor;
  	height: $large;
}
Posted by: Guest on September-21-2020
0

Sass Variables

$myFont: Helvetica, sans-serif;
$myColor: red;
$myFontSize: 18px;
$myWidth: 680px;

body {
  font-family: $myFont;
  font-size: $myFontSize;
  color: $myColor;
}

#container {
  width: $myWidth;
}
Posted by: Guest on December-06-2020

Code answers related to "how to declare a variable in SASS"

Browse Popular Code Answers by Language