+1 vote
in HTML by
How to use variables in Sass?

1 Answer

0 votes
by

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 vote
asked Aug 17, 2020 in HTML by RShastri
0 votes
asked Aug 17, 2020 in HTML by RShastri
+2 votes
asked Jul 7, 2021 in CSS by rajeshsharma
...