相当于 Bootstrap 4 Beta 上的 $btn-secondary-color

Equivalent of $btn-secondary-color on Bootstrap 4 Beta

我在 _custom.scss 文件中使用了变量 $btn-secondary-color,但是 Bootstrap 4 Beta 中不存在这个变量。好像换成了这个:

// _variables.scss

$theme-colors: (
  primary: $blue,
  secondary: $gray-600,
  success: $green,
  info: $cyan,
  warning: $yellow,
  danger: $red,
  light: $gray-100,
  dark: $gray-800
) !default;

// _buttons.scss
@each $color, $value in $theme-colors {
  .btn-#{$color} {
    @include button-variant($value, $value);
  }
}

那么如何修复我的代码并引用 _custom.scss 中按钮的辅助颜色?

不确定这是否是最好的方法,但我通过使用获得了我需要的值:

color: map-get($theme-colors, secondary);