How to access Maps
ℹ️ use "map-get($map, $key)' to get value from map.
To access a values from SASS Map use
map-get($map, $key)
function. This function returns the value associated with the given key.$breakpoints: (
small: 767px,
medium: 992px,
large: 1200px
);
@media (min-width: #{map-get($breakpoints, "medium")}) {
// ...
}
Last modified 1yr ago