无法更改Bootstrap-vue中的主题颜色
我想更改bootstrap-vue
主题颜色,主要,成功,危险...
我已经阅读了文档,但仍然无法做到
这是主题。 SCSS
$body-bg: red;
$body-color: #111;
$theme-colors: (
"primary": red,
"danger": #caaf12
);
$primary:red;
@import '../node_modules/bootstrap/scss/bootstrap';
@import '../node_modules/bootstrap-vue/src/index.scss';
和我已经在Main.scs中导入了此文件
@import url('./theme.scss');
body{
...
}
,但仍然没有更改原色?
我该如何修复?
I want to change Bootstrap-vue
theme colors , primary , success , danger ...
I have read document but still can't do that
this is theme.scss
$body-bg: red;
$body-color: #111;
$theme-colors: (
"primary": red,
"danger": #caaf12
);
$primary:red;
@import '../node_modules/bootstrap/scss/bootstrap';
@import '../node_modules/bootstrap-vue/src/index.scss';
and I have imported this file in my main.scss like this
@import url('./theme.scss');
body{
...
}
But still primary color does not change
How can I fix this ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了答案。
我必须在nuxt-config中添加them.scss。
CSS:['./ Assets/theme.scss']
也这样的导入地址
I found answer .
I have to add theme.scss in nuxt-config like this
css:['./assets/theme.scss']
also ichanged import address like this