/// Map collector.
@function map-collect($maps...) {
    $collection: ();
  
    @each $map in $maps {
      $collection: map-merge($collection, $map);
    }
    @return $collection;
  }

/// Map set
@function map-set($map, $key, $value: null) {
    $new: ($key: $value);
    @return map-merge($map, $new);
}

/// Retrive theme by name.
///
/// @author Federico Gambardella<fedega86@libero.it>
/// @param $theme-name
@function retriveThemebyName($theme-name) {
    $theme-map: ();
    @each $key, $map in $themes-map {
        @if ($key == $theme-name) {
            $theme-map : map-get($map, map);
            @if ($theme-map == null) {
                @warn "Theme not found";
            }
        }
    }
    @return $theme-map;
}