/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
@use "sass:meta";
@use "sass:map";

@forward "../style/themecolors";

@mixin uicore-text-block-spacing {
  padding: 0;
  margin: 0 0 var(--iui-size-l);
}

@mixin uicore-text($type: body) {
  $sizes: (
    body: var(--iui-font-size-1),
    small: var(--iui-font-size-0),
  );

  $type: if(
    sass(map.has-key($sizes, $type)): $type; else: body,
  );

  font-size: map.get($sizes, $type);
  font-weight: var(--iui-font-weight-normal);
  line-height: var(--iui-size-l);
  color: var(--iui-color-text);
}
