Browse Source

docs: 📖 update customize-theme

pull/23627/head
afc163 5 years ago
parent
commit
75440c47c8
  1. 1
      docs/react/customize-theme.en-US.md
  2. 1
      docs/react/customize-theme.zh-CN.md

1
docs/react/customize-theme.en-US.md

@ -97,6 +97,7 @@ Follow [Use in create-react-app](/docs/react/use-with-create-react-app).
Another approach to customize theme is creating a `less` file within variables to override `antd.less`. Another approach to customize theme is creating a `less` file within variables to override `antd.less`.
```css ```css
@import '~antd/es/style/themes/default.less';
@import '~antd/dist/antd.less'; // Import Ant Design styles by less entry @import '~antd/dist/antd.less'; // Import Ant Design styles by less entry
@import 'your-theme-file.less'; // variables to override above @import 'your-theme-file.less'; // variables to override above
``` ```

1
docs/react/customize-theme.zh-CN.md

@ -97,6 +97,7 @@ module.exports = {
另外一种方式是建立一个单独的 `less` 变量文件,引入这个文件覆盖 `antd.less` 里的变量。 另外一种方式是建立一个单独的 `less` 变量文件,引入这个文件覆盖 `antd.less` 里的变量。
```css ```css
@import '~antd/es/style/themes/default.less';
@import '~antd/dist/antd.less'; // 引入官方提供的 less 样式入口文件 @import '~antd/dist/antd.less'; // 引入官方提供的 less 样式入口文件
@import 'your-theme-file.less'; // 用于覆盖上面定义的变量 @import 'your-theme-file.less'; // 用于覆盖上面定义的变量
``` ```

Loading…
Cancel
Save