/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
@import "./style/opacity.scss";
@import "./style/typography.scss";

$title-weight: $uicore-font-weight-normal;
$title-size: $uicore-font-size-leading;
$title-opacity: $uicore-opacity-1;

$body-weight: $uicore-font-weight-light;
$body-size: $uicore-font-size;
$body-opacity: $uicore-opacity-2;

$body1-weight: $uicore-font-weight-normal;
$body1-size: $uicore-font-size;
$body1-opacity: $uicore-opacity-2;

@mixin title($rgb: unset) {
  font-weight: $title-weight;
  font-size: $title-size;

  @if $rgb != unset {
    color: rgba($rgb, $title-opacity);
  }
}

@mixin body($rgb: unset) {
  font-weight: $body-weight;
  font-size: $body-size;

  @if $rgb != unset {
    color: rgba($rgb, $body-opacity);
  }
}

@mixin body1($rgb: unset) {
  font-weight: $body1-weight;
  font-size: $body1-size;

  @if $rgb != unset {
    color: rgba($rgb, $body1-opacity);
  }
}