-
Notifications
You must be signed in to change notification settings - Fork 49
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
lessVarsFilePath doesn't work #74
Comments
Unfortunately, I have the same issue |
Having the same issue, what I did as a work around for the moment is created a js file exporting an object with the variables I want to override and importing it to |
// src/styles/variables.less
@import '~antd/lib/style/themes/default.less'; // <------ add this
//@primary-color: red;
@primary-color: #ff0000; // change antd primary-color seemore, #36 |
Adding the import to the override file does not solve for me either. |
This solution is good. But not ideal for complex cases like reusing antd default variables. for example:
|
This fixed it for me. |
Issue
I'm trying to use
next-plugin-antd-less
according to the documentation, but myantd
variables don't work.I'm trying to use
lessVarsFilePath
property (everything according to the documentation), but it just doesn't work.How to reproduce:
Please see this repo https://github.com/Webbrother/next-plugin-antd-less-issue
yarn
then
yarn dev
I have variable in
vatiables.less
:I expect to see the red (my custom override color) button on the page, but I see the default color (blue).
How can I fix it?
The text was updated successfully, but these errors were encountered: