繁体   English   中英

Understrap 子主题编辑不可见,未应用 sass 颜色变量

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM