We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am customizing my ant design app using craco-antd which works very well :)
Now I'd like to use antd less variables inside the various .less files of my components. So that I can do stuff like e.g:
.card { padding-top: @padding-md; }
I am able to get it to work when I add
@import 'antd/dist/antd.less';
at the top of each .less file that uses an antd variable but that seems quite cubersome. Is there no way to add the variables globally?
The text was updated successfully, but these errors were encountered:
add the variables globally?
I prefer SASS\SCSS instead of LESS. I use craco-sass-resources-loader for that.
craco-sass-resources-loader
my config be like:
module.exports = { ... { // https://www.npmjs.com/package/craco-sass-resources-loader plugin: sassResourcesLoader, options: { resources: './src/styles/core.scss', }, }, ], };
core.scss
@import "variables.app"; @import "mixins"; @import "helpers"; @import "animations";
Try craco-plugin-style-resources-loader
Sorry, something went wrong.
No branches or pull requests
I am customizing my ant design app using craco-antd which works very well :)
Now I'd like to use antd less variables inside the various .less files of my components. So that I can do stuff like e.g:
.card { padding-top: @padding-md; }
I am able to get it to work when I add
@import 'antd/dist/antd.less';
at the top of each .less file that uses an antd variable but that seems quite cubersome. Is there no way to add the variables globally?
The text was updated successfully, but these errors were encountered: