【发布时间】:2021-08-02 21:13:31
【问题描述】:
我想定义我自己的主题颜色,以便覆盖标准引导元素,并在以后将值用于我自己的组件。这是我在 scss 文件中使用的代码:
$theme-colors: (
"primary": #611fe6,
"secondary": #ffbd58,
"dark": #000000
);
@import "node_modules/bootstrap/scss/bootstrap";
@import "node_modules/bootstrap/scss/functions";
@import "node_modules/bootstrap/scss/variables";
@import "node_modules/bootstrap/scss/mixins";
.fa-li {
color: $primary;
}
.fa-li 然后具有引导程序的原始原色,而不是我自己的。
【问题讨论】:
标签: sass bootstrap-5 bootstrap-themes