-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
use less function && css variable breaks => color2.toHSL #3338
Comments
by the way, How can I change a less variables by javascript? |
@yinsang The error is not helpful, but part of the issue is that, at compile time, |
Thank you so much. |
@yinsang You can use |
|
While I am not familiar with the less source code, it seems to me that less would have CSS variables available to it at compile time, whether we declare them ourselves (like shown in the example) or have less generate code beforehand, and that creating a new function The |
error:
@base-color:var(--baseColor, red);
@body-color:shade(@base-color, 15%);
^
Error evaluating function
shade
: color2.toHSL is not a functionin /Users/weiyinpeng/Documents/personal-area/github/mvp/webpack-demo/src/a.less (line 6, column 12)
@ ./src/a.less 2:14-111
@ ./src/index.js
The text was updated successfully, but these errors were encountered: