Im following the official docs but it is not working for me. I installed the less, less-loader and customize-cra and then I added config-overrides.js go the root directory of React app. The config-overrides.js looks like this:
import { addLessLoader, fixBabelImports, override } from 'customize-cra'
module.exports = override(
fixBabelImports('import', {
libraryName: 'antd',
libraryDirectory: 'es',
style: true
}),
addLessLoader({
javascriptEnabled: true,
modifyVars: {
'@primary-color': '#1DA57A',
'@link-color': '#1DA57A',
'@success-color': '#1DA57A',
'@warning-color': '#1DA57A',
'@error-color': '#1DA57A'
}
})
)
The colors in the app are still default Ant Design colors. What am I missing, please?
Thank you.