diff --git a/README-zh_CN.md b/README-zh_CN.md index 53317e8dae..ce54a827a3 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -33,11 +33,22 @@ npm install antd - 按需使用 ```jsx - import 'antd/lib/index.css'; // 只需在页面入口模块引用一次 import Datepicker from 'antd/lib/datepicker'; ReactDOM.render(, mountNode); ``` +引入样式: + +```jsx +// only need to import once in entry module +import 'antd/lib/index.css'; +``` + +```jsx +// or less for modifyVars +import 'antd/style/index.less'; +``` + ## 浏览器支持 现代浏览器和 IE8 及以上。 diff --git a/README.md b/README.md index d1174b2a5f..59f6d91022 100644 --- a/README.md +++ b/README.md @@ -32,11 +32,22 @@ npm install antd - Use on demand ```jsx - import 'antd/lib/index.css'; // only need to import once in entry module import Datepicker from 'antd/lib/datepicker'; ReactDOM.render(, mountNode); ``` +Import style: + +```jsx +// only need to import once in entry module +import 'antd/lib/index.css'; +``` + +```jsx +// or less for modifyVars +import 'antd/style/index.less'; +``` + ## Browser Support Normal browsers and Internet Explorer 8+. diff --git a/docs/introduce.md b/docs/introduce.md index b9687ebf2f..c53132132f 100644 --- a/docs/introduce.md +++ b/docs/introduce.md @@ -46,10 +46,19 @@ import Datepicker from 'antd/lib/datepicker'; ReactDOM.render(, mountNode); ``` +引入样式: + ```jsx import 'antd/lib/index.css'; // 样式需要在入口处引用一次 ``` +或者引入 less 文件,可用于主题配置: + +```jsx +// or less for modifyVars +import 'antd/style/index.less'; +``` + ## 版本 - 稳定版:[![npm package](http://img.shields.io/npm/v/antd.svg?style=flat-square)](https://www.npmjs.org/package/antd)