Twitter bootstrap 在Bootstrap 4 Beta上相当于$btn二次颜色

Twitter bootstrap 在Bootstrap 4 Beta上相当于$btn二次颜色,twitter-bootstrap,sass,twitter-bootstrap-4,Twitter Bootstrap,Sass,Twitter Bootstrap 4,我在\u 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,

我在
\u 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);
  }
}

因此,如何修复代码并引用
\u custom.scss
中按钮的二次颜色?

不确定这是否是最好的方法,但我使用以下方法获得了所需的值:

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

作为将来的参考,这是进行更改的pull请求:
主题颜色(“secondary”)
在可读性方面可能更清晰一些,尽管ofc它与您所做的完全相同,一张地图使用$theme颜色。