2022-08-08 19:32:46 +08:00
|
|
|
# `@ice/plugin-antd`
|
|
|
|
|
2022-11-11 11:02:51 +08:00
|
|
|
An ice.js plugin to use `antd` components.
|
2022-08-08 19:32:46 +08:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { defineConfig } from '@ice/app';
|
|
|
|
import antd from '@ice/plugin-antd';
|
|
|
|
|
2022-11-11 11:02:51 +08:00
|
|
|
export default defineConfig(() => ({
|
2022-08-08 19:32:46 +08:00
|
|
|
plugins: [antd({
|
|
|
|
dark: true,
|
|
|
|
compact: true,
|
|
|
|
theme: {
|
|
|
|
'primary-color': '#fd8',
|
2022-11-11 11:02:51 +08:00
|
|
|
},
|
2022-08-08 19:32:46 +08:00
|
|
|
})],
|
2022-11-11 11:02:51 +08:00
|
|
|
}));
|
|
|
|
```
|