in HTML by (1.7k points)
How to use variables in Sass?

1 Answer

0 votes
by (1.7k points)

Think of variables as a way to store information that you want to reuse throughout your stylesheet. You can store things like colors, font stacks, or any CSS value you think you'll want to reuse. Sass uses the $ symbol to make something a variable.

$font-stack:    Helvetica, sans-serif;
$primary-color: #333;

body {
  font: 100% $font-stack;
  color: $primary-color;
}

Related questions

+1 vote
asked Aug 17, 2020 in HTML by RShastri (1.7k points)
0 votes
+1 vote
asked Aug 17, 2020 in HTML by RShastri (1.7k points)
0 votes
asked Aug 17, 2020 in HTML by RShastri (1.7k points)
+1 vote
asked Aug 17, 2020 in HTML by RShastri (1.7k points)
+1 vote
0 votes
asked Aug 17, 2020 in HTML by RShastri (1.7k points)
+1 vote
asked Aug 17, 2020 in HTML by RShastri (1.7k points)
0 votes
asked Feb 15, 2020 in JAVA by rahuljain1 (6.5k points)
...