Variables let you write a value once and reuse it many times. This helps the Sass compiler avoid repeating long values multiple times in the output CSS, reducing the file size.
$primary-color: #3498db; .button { color: $primary-color; border: 1px solid $primary-color; }
The Sass compiler replaces $primary-color with its value #3498db in the output CSS.
Option B compiles to two simple selectors with the .nav class prefix, avoiding unnecessary nesting or child selectors, resulting in smaller CSS.
Flexbox shorthand properties like flex combine multiple settings into one line, reducing the total CSS size.
Using variables with Sass functions to adjust colors dynamically allows you to maintain accessibility while reusing code, which keeps the compiled CSS smaller.
