在 roadhog 或 Umi 里配置antd主题

版权声明:转载请标明出处 https://blog.csdn.net/qq_41155191/article/details/90696475

在项目根目录的 .webpackrc(roadhog)或 config/config.js(Umi)文件中 theme 字段进行主题配置。theme可以配置为一个对象或文件路径。

"theme": {
  "primary-color": "#1DA57A",
},
"theme": "./theme.js",

猜你喜欢

转载自blog.csdn.net/qq_41155191/article/details/90696475