/**
 * @license
 * Copyright 2023 Tyler Technologies, Inc. 
 * License: Apache-2.0
 */
@use '../theme/theme-values';
@use '../theme';
@use './variables';

@mixin provide-theme($theme) {
  @include theme.theme-properties(icon, $theme, variables.$theme-values);
}

@mixin host() {
  @include theme.css-custom-property(font-size, --forge-icon-font-size, variables.$font-size);

  display: inline-block;
  contain: content;
  box-sizing: content-box !important;
}

@mixin svg() {
  @include theme.css-custom-property(fill, --forge-icon-theme-color, variables.$color);
  @include theme.css-custom-property(stroke, --forge-icon-theme-color, variables.$color);

  display: block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
}

@mixin theme($theme) {
  :host([theme='#{$theme}']) {
    $colorValue: map-get(theme-values.$property-values, $theme);
    @include theme.css-custom-property('color', $theme, $colorValue);
  }
}
