Skip to content

Commit

Permalink
docs(module:showcase): update docs color define (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guoyuanqiang authored and fisherspy committed Nov 27, 2018
1 parent 310e750 commit de6fd3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit de6fd3f

Please sign in to comment.