How to access Maps

ℹ️ use "map-get($map, $key)' to get value from map.

Description

The most common usage case of sass maps is just accessing them. It can be done with the help of map-get($map, $key) function.

Example:

$breakpoints: (
small: 767px,
medium: 992px,
large: 1200px
);
@media (min-width: #{map-get($breakpoints, $breakpoint)}) {
...
}

Read More