yarn add antd
yarn add @ant-design/icons
yarn add -D @types/antd
yarn add @craco/craco
yarn add craco-less
import 'antd/dist/antd.less';
const CracoLessPlugin = require('craco-less');
module.exports = {
plugins: [{
plugin: CracoLessPlugin,
options: {
lessLoaderOptions: {
lessOptions: {
modifyVars: { '@primary-color': '#1DA57A' },
javascriptEnabled: true,
},
},
},
}, ],
};