June 2025
Beginner
817 pages
31h 30m
English
When you look at a larger CSS project, you’ll notice that many values of CSS features, such as colors, spacing, dimension, and so on, are constantly repeated. If one wants to change these values afterward, an extensive search and replace of the values is often started. With variables in Sass, you can save yourself this work. They allow you to set a value for a CSS feature as a variable and then use it anywhere in the SCSS document. After compiling the SCSS file, these variables are replaced with the actual values in the CSS file.
You introduce a variable with the dollar sign ($). This is followed by the name of the variable without spaces in between. You can assign a value to the variable via a colon and end ...
Read now
Unlock full access