Skip to content

use less function && css variable breaks => color2.toHSL #3338

Closed
@yinsang

Description

@yinsang
:root{
  --baseColor:pink;
}
@base-color:var(--baseColor, red);
@body-color:shade(var(--baseColor));
body{
  background:@body-color;
}

error:
@base-color:var(--baseColor, red);
@body-color:shade(@base-color, 15%);
^
Error evaluating function shade: color2.toHSL is not a function
in /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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions