mzohaibqc / antd-theme-webpack-plugin

A webpack plugin for Dynamic theme generation for Ant Design
https://mzohaibqc.github.io/antd-theme-webpack-plugin/index.html
368 stars 81 forks source link

./node_modules/ant-design-vue/lib/style/themes could not find dark.less and compact.less #71

Open Yovven opened 4 years ago

Yovven commented 4 years ago

Describe the bug ./node_modules/ant-design-vue/lib/style/themes could not find dark.less and compact.less, only has default.less and index.less

Show your code config-overrides.js the same as the demo's, but change some paths

Version ant-design-vue@1.5.3 ant-theme-webpack-plugin@1.3.6

mzohaibqc commented 4 years ago

@Yovven this is ant-design-vue issue, actually a feature request.

However, still you can use this package without a dark theme.

Yovven commented 4 years ago

OK. I want to use two theme like customize-cra demo

mzohaibqc commented 4 years ago

You can create dark theme but it might take your few (2-3) days to fix all issues. Idea is to override all variables with colors which suits dark theme. You can simply start by copying dark.less from antd for react and then see which variables are not being used in ant-design-vue package and remove them.

Some components color will not change so you have to override that css/less with your own less with your theme variables so you can alter this.