// 获取颜色变量
@function get-color($name) {
  @return var(--#{$name}-color);
}

// 设置背景颜色
@mixin bg-color($name) {
  background-color: get-color($name);
}

// 设置文字颜色
@mixin text-color($name) {
  color: get-color($name);
}

// 设置边框颜色
@mixin border-color($name) {
  border-color: get-color($name);
}

// 获取字体大小
@function font-size($size) {
  @return map-get($font-sizes, $size);
}

// 获取字体粗细
@function font-weight($weight) {
  @return map-get($font-weights, $weight);
}

// 设置字体大小
@mixin set-font-size($size) {
  font-size: font-size($size);
}

// 设置字体粗细
@mixin set-font-weight($weight) {
  font-weight: font-weight($weight);
}

// 设置字体样式
@mixin set-font($size, $weight) {
  @include set-font-size($size);
  @include set-font-weight($weight);
}

// 响应式字体大小
@mixin responsive-font-size($size, $breakpoint) {
  @media (min-width: $breakpoint) {
    font-size: font-size($size);
  }
}
