📝 Add offcial themes in documentation

This commit is contained in:
afc163 2019-07-20 17:17:53 +08:00
parent 29e4d2f3eb
commit 06eb86c360
No known key found for this signature in database
GPG Key ID: 5F00908D72002306
2 changed files with 14 additions and 0 deletions

View File

@ -129,6 +129,13 @@ You must import styles as less format. A common mistake would be importing multi
- If you import styles by specifying the `style` option of [babel-plugin-import](https://github.com/ant-design/babel-plugin-import), change it from `'css'` to `true`, which will import the `less` version of antd.
- If you import styles from `'antd/dist/antd.css'`, change it to `antd/dist/antd.less`.
## Offcial Themes 🌈
We have some offcial themes, try on and give us feedback!
- [Dark Theme (Beta)](https://github.com/ant-design/ant-design-dark-theme)
- [Aliyun Console Theme (Beta)](https://github.com/ant-design/ant-design-aliyun-theme)
## Related Articles
- [Using Ant Design in Sass-Styled Webpack Projects with `antd-scss-theme-plugin`](https://intoli.com/blog/antd-scss-theme-plugin/)

View File

@ -107,6 +107,13 @@ module.exports = {
- 如果你在使用 [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) 的 `style` 配置来引入样式,需要将配置值从 `'css'` 改为 `true`,这样会引入 less 文件。
- 如果你是通过 `'antd/dist/antd.css'` 引入样式的,改为 `antd/dist/antd.less`
## 官方主题 🌈
我们提供了一些官方主题,欢迎在项目中试用,并且给我们提供反馈。
- [黑色主题Beta](https://github.com/ant-design/ant-design-dark-theme)
- [阿里云控制台主题Beta](https://github.com/ant-design/ant-design-aliyun-theme)
## 社区教程
- [Using Ant Design in Sass-Styled Webpack Projects with `antd-scss-theme-plugin`](https://intoli.com/blog/antd-scss-theme-plugin/)