Closed quanzhiyuan closed 3 years ago
This is not possible. The value of the CSS variable --theme-color
is only known by the browser at runtime. Less will only see the text input "var(--theme-color, #5582F3)" at compile time and can't apply a color function to it.
@theme-color: var(--theme-color, #5582F3); @hsv-h: hsvhue(@theme-color);
it has the error error evaluating function
hsvhue
: Argument cannot be evaluated to a colorsee here https://codepen.io/quanzhiyuan-the-scripter/pen/MWJaBaz