加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

更改Angular 2的材质设计主题

发布时间:2020-12-17 06:48:26 所属栏目:安全 来源:网络整理
导读:我试图在我的Angular 2应用程序中使用 Angular Material 2. 我没有找到如何全局更改材质主题(primaryColor等). 我知道Angular Material 2仍处于alpha状态,但目前有办法吗? 解决方法 https://github.com/angular/material2/issues/287 @samio80 The styles a
我试图在我的Angular 2应用程序中使用 Angular Material 2.

我没有找到如何全局更改材质主题(primaryColor等).
我知道Angular Material 2仍处于alpha状态,但目前有办法吗?

解决方法

https://github.com/angular/material2/issues/287

@samio80 The styles are currently written with theming in mind,but we don’t have a deployment strategy for theming ready yet. As a workaround in the meantime,you can pull the source directly and customize the theme by modifying _default-theme.scss and creating npm packages (via the script stage-release.sh).

请记住,我们还处于alpha过程的早期阶段,因此,API或行为可能会在不同版本之间发生变化.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读