Open Kost927 opened 1 year ago
with antd v4 works fine, but antd v5 can't override default styles.
const CracoAntDesignPlugin = require('craco-antd'); const path = require('path'); module.exports = { plugins: [ { plugin: CracoAntDesignPlugin, options: { customizeThemeLessPath: path.join(__dirname, 'src/styles/antdCustomize.less'), babelPluginImportOptions: { libraryName: 'antd', libraryDirectory: 'es', style: true }, cssLoaderOptions: { modules: true, }, customizeTheme: { '@primary-color': '#00AC8E', // primary color for all components '@primary-color-hover': '#33BDA5', '@primary-color-active': '#006162', }, }, }, ], };
with antd v4 works fine, but antd v5 can't override default styles.