【发布时间】:2019-11-15 17:01:37
【问题描述】:
如何在不触及引导变量.scss 的情况下添加自定义的新主题颜色?
请注意,我可以成功更新现有颜色,但无法以同样的方式添加新的主题颜色
文件结构
@import 'custom_variables';
@import './bootstrap/bootstrap';
@import './pages/home';
custome_variables.scss
$theme-colors: (
"primary": #2c67f4, // successfully edited existing color
"danger": #ff4136,
"custom" : "red" // not working when adding new color theme
);
尝试了代码但没有成功
$theme-colors: map-merge(
(
"custom": "red",
),
$theme-colors
);
【问题讨论】:
标签: html css twitter-bootstrap sass bootstrap-4