Complete the code to define a base spacing variable in Sass.
$base-spacing: [1];The base spacing is commonly set using rem units for scalability and accessibility.
Complete the code to create a Sass map for spacing scale with key 'small'.
$spacing-scale: (small: [1]);The 'small' spacing is often half the base spacing, here 0.5rem.
Fix the error in the Sass function that returns spacing by key.
@function get-spacing($key) {
@return map-get($spacing-scale, [1]);
}The function parameter $key must be used as a variable without quotes to access the map value.
Fill both blanks to generate a spacing scale map with keys 'small' and 'medium'.
$spacing-scale: (small: [1], medium: [2]);
The 'small' spacing is 0.5rem and 'medium' spacing is 2rem for a clear scale difference.
Fill all three blanks to create a Sass map with keys 'small', 'medium', and 'large' using a spacing scale.
$spacing-scale: (small: [1], medium: [2], large: [3]);
The scale starts at 0.25rem for small, 1rem for medium, and 4rem for large spacing to create a clear progression.