@use "sass:list";
@use "../../functions" as *;

// Outputs justify-content

@mixin u-justify-content($value...) {
  $value: unpack($value);
  $important: null;
  @if has-important($value) {
    $value: remove($value, "!important");
    @if list.length($value) == 1 {
      $value: de-list($value);
    }
    $important: " !important";
  }
  justify-content: get-uswds-value("justify-content", $value...) #{$important};
}
