@ -28,6 +28,14 @@ Specify the `theme` property in the `package.json` or `.webpackrc` file, whose v
"primary-color": "#1DA57A",
},
```
you can write a webpack config about [less-loader modifyVars](https://github.com/webpack/less-loader#less-options) like [atool-build](https://github.com/ant-tool/atool-build/blob/a4b3e3eec4ffc09b0e2352d7f9d279c4c28fdb99/src/getWebpackCommonConfig.js#L131-L138) does.
Note:
- Importing styles from less files is necessary.
- 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 `'vue-antd-ui/dist/antd.css'`, change it to `vue-antd-ui/dist/antd.less`.
- If you want to override `@icon-url`, the value must be contained in quotes like `"@icon-url": "'your-icon-font-path'"`.
### 2) Overriding Less variables (alternative way)
@ -35,7 +43,7 @@ Override variables via less definition files.
Create a standalone less file like the one below, and import it in your project.
```css
```less
@import "~vue-antd-ui/dist/antd.less"; // import official less entry file
@import "your-theme-file.less"; // override variables here