Last updated 3 years ago
Was this helpful?
You can collect a set of like values into a with the following SCSS syntax:
$backgrounds: ( "gray": #AAAAAA, "red": #FF4136, "blue": #0074D9, );
You can then access a value from the map using the :
.boxA { background-color: map-get($backgrounds, "gray"); } .boxB { background-color: map-get($backgrounds, "red"); } .boxC { background-color: map-get($backgrounds, "blue"); }
See a .
map-get