forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -167,7 +167,7 @@ Method 2: Import [antd/dist/antd.dark.less](https://unpkg.com/browse/[email protected]/di | |
|
||
```less | ||
@import '~antd/dist/antd.dark.less'; // Introduce the official dark less style entry file | ||
@import '~antd/dist/antd.compact.less'; | ||
@import '~antd/dist/antd.compact.less'; // Introduce the official compact less style entry file | ||
``` | ||
|
||
If the project does not use Less, you can import [antd.dark.css](https://unpkg.com/browse/[email protected]/dist/antd.dark.css) or [antd/dist/antd.compact.css](https://unpkg.com/browse/[email protected]/dist/antd.compact.css) in the CSS file: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,7 @@ module.exports = { | |
|
||
```less | ||
@import '~antd/dist/antd.dark.less'; // 引入官方提供的暗色 less 样式入口文件 | ||
@import '~antd/dist/antd.compact.less'; // 引入官方提供的暗色 less 样式入口文件 | ||
@import '~antd/dist/antd.compact.less'; // 引入官方提供的紧凑 less 样式入口文件 | ||
``` | ||
|
||
如果项目不使用 Less,可在 CSS 文件中全量引入 [antd.dark.css](https://unpkg.com/browse/[email protected]/dist/antd.dark.css) 或 [antd.compact.css](https://unpkg.com/browse/[email protected]/dist/antd.compact.css)。 | ||
|