How to access Maps

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

Description

To access a values from SASS Map use map-get($map, $key) function. This function returns the value associated with the given key.

Example:

$breakpoints: (
  small: 767px,
  medium: 992px,
  large: 1200px
);


@media (min-width: #{map-get($breakpoints, "medium")}) {
  // ...
}

Read More

Last updated