Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does craco supports antd V5? #118

Open
Kost927 opened this issue Jul 7, 2023 · 0 comments
Open

Does craco supports antd V5? #118

Kost927 opened this issue Jul 7, 2023 · 0 comments

Comments

@Kost927
Copy link

Kost927 commented Jul 7, 2023

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',
				},
			},
		},
	],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant