Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(module:showcase): update docs color define #120

Merged
merged 2 commits into from
Nov 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/customize-theme.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Here is an example of `theme.less`
@import '../node_modules/ng-zorro-antd-mobile/src/ng-zorro-antd-mobile.less';

// -------- override less var -----------
@primary-color : #f5222d;
@brand-primary : #f5222d;
```

All less vars can be checked [here](https://github.com/NG-ZORRO/ng-zorro-antd-mobile/blob/master/site_scripts/_site/src/theme.less) is a sample of theme define file.
Expand Down
4 changes: 2 additions & 2 deletions docs/customize-theme.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ Ant Design 的样式使用了 [Less](http://lesscss.org/) 作为开发语言,

`theme.less` 样例如下

> 在样例中通过修改 `@primary-color` 的数值将 `ng-zorro-antd-mobile` 的基础色修改为 `#f5222d`,开发者可以根据实际需求自由修改。
> 在样例中通过修改 `@brand-primary` 的数值将 `ng-zorro-antd-mobile` 的基础色修改为 `#f5222d`,开发者可以根据实际需求自由修改。

```less
// -------- 引入官方提供的 less 样式入口文件 -----------
@import '../node_modules/ng-zorro-antd-mobile/src/ng-zorro-antd-mobile.less';

// -------- 自定义参数覆盖 -----------
@primary-color : #f5222d;
@brand-primary: #f5222d;
```

全部可被自定义 less 变量可以参考 [这里](https://github.com/NG-ZORRO/ng-zorro-antd-mobile/blob/master/site_scripts/_site/src/theme.less)。
Expand Down