react项目中配置antd

1. 安装antd

yarn add antd

2. 配置craco:https://ant.design/docs/react/use-in-typescript-cn

3. 颜色变量:https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less

原文地址:https://www.cnblogs.com/chefweb/p/15043491.html