我试图通过在我的theme.scss文件中设置相应的变量来覆盖公司主题变量(nb-action颜色)。
如下所示:
@import '~@nebular/theme/styles/theming';
@import '~@nebular/theme/styles/themes/corporate';
$theme: ( actions-fg:#000000, actions-bg: #000000, actions-separator: #000000, color-fg: #000000, );
$nb-themes: nb-register-theme(( $theme), corporate, default);问题是nb-action(一个或多个)组件的颜色根本不改变。我做错了什么?
提前谢谢你!
发布于 2019-03-12 22:07:07
这就是了:
$nb-themes: nb-register-theme((
// add your variables here like:
actions-fg:#000000,
actions-bg: #000000,
actions-separator: #000000,
color-fg: #000000,
), corporate, corporate);别忘了更改NbThemeModule.forRoot({ name: 'corporate' })部分。下面是一个完整的示例:https://stackblitz.com/edit/github-kafw6m?file=src/themes.scss
https://stackoverflow.com/questions/55087947
复制相似问题