小编Tim*_*ber的帖子

Bootstrap 5 不允许我向地图添加其他颜色

我在向引导程序的颜色图添加颜色时遇到问题。

这是我当前的导入文件:

// Required bootstrap components
@import "../../../node_modules/bootstrap/scss/functions";

$custom-colors: (
    "custom-primary": #003767,
    "custom-secondary": #007f2e,
    "custom-success": #C00000,
    "custom-info": #FF5000,
    "custom-warning": #414A51,
    "custom-danger": #E3E3E3,
    "custom-light": #F0F0F0,
    "custom-dark": #00B2CE,
);

@import "../../../node_modules/bootstrap/scss/variables";
// `$theme-colors` is one of the variable that's declared in variables.scss
// therefore this line of code has to be placed after the variables import
$theme-colors: map-merge($theme-colors, $custom-colors);
// but in order for this to take effect it needs to be before the variables import

// Custom bootstrap
// This file …
Run Code Online (Sandbox Code Playgroud)

css sass twitter-bootstrap

2
推荐指数
1
解决办法
1854
查看次数

标签 统计

css ×1

sass ×1

twitter-bootstrap ×1