Performance: Default values with !default
MEDIUM IMPACT
This affects CSS bundle size and style recalculation speed by controlling variable overrides efficiently.
$primary-color: blue !default; $primary-color: red;
$primary-color: blue; $primary-color: red;
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Reassign variables without !default | N/A | N/A | Larger CSS causes slower style calculation | [X] Bad |
| Use !default for fallback variable values | N/A | N/A | Smaller CSS improves style calculation speed | [OK] Good |