/* Utility Class Generation Mixins */
@use 'sass:map';

/**
 * Mixin used to generate utility classes.
 * @param {Map} util-data Utility class data map
 * @param {string} prefix Prefix to prepend to all utility classes.
 */
@mixin gen-classes($util-data, $prefix: '') {
  @each $util-name, $util-map in $util-data {
    @each $util-val-name, $util-val-val in map.get($util-map, vals) {
      .#{$prefix}#{$util-name}-#{$util-val-name} {
        #{map.get($util-map, prop)}: $util-val-val !important;
      }
    }
  }
}

/* Utility Class Generation Mixins */
@use 'sass:map';

/**
 * Mixin used to generate utility classes.
 * @param {Map} util-data Utility class data map
 * @param {string} [prefix=''] Prefix to prepend to all utility classes
 */
@mixin gen-classes($util-data, $prefix: '') {
  @each $util-label, $util-label-map in $util-data {
    @each $prop-label, $prop-val in map.get($util-label-map, vals) {
      .#{$prefix}#{$util-label}-#{$prop-label} {
        #{map.get($util-label-map, prop)}: $prop-val !important;
      }
    }
  }
}

Refactor gen-classes mixin to be more readable
Refactor gen-classes mixin to be more readable
