[英]Understrap child-theme edit not visible, sass color variable not applied
我正在寻找更改$primary
在_theme_variables.scss
中应用的主要主题颜色; 在npm run watch-bs
(浏览器同步)时将值从默认的$purple
更改为$orange
。 主页上仍然没有变化:
我的编辑:
_theme_variables.scss
$purple: #5533ff; // Thats a sample how you could change a BootStrap variable.
$orange: #fd7e14;
$primary: $orange; // Once we've changed the value, we'll also make it the primary brand color.
_theme.scss
:
// This is an empty scss file for your custom styles - Please add your super duper awesome mega design styles here
@import "theme_variables";
我错过了什么? 🤔
好的,我想我解决了这个特定问题。 我能够通过修改src/sass/theme/_child_theme_variables.scss
成功覆盖$primary
值。
较早的错误是期望在编辑src/sass/assets/understrap/theme/_theme_variables.scss
!
如果有人可以在这种情况下描述_child_theme_variables.scss
与_theme_variables.scss
的目的,我会接受他们的回答! 😁
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.