Skip to content
This repository was archived by the owner on Dec 24, 2020. It is now read-only.
This repository was archived by the owner on Dec 24, 2020. It is now read-only.

Error running color function on Javascript evaluation #42

@mindfullsilence

Description

@mindfullsilence

The first 2 lines below works exactly as it should. But using a color function against it throws an error and fails compilation. This is using the node.js precompiler, not the browser processor version.

@start: `'#' + Math.floor(Math.random() * 16777215).toString(16)`;
@color: ~`@{start}`;

.randomColor {
    color: lighten(@color, 20%);
}

errors thrown:

undefined_methodError: error evaluating function `lighten`: Object #<Object> has no method 'toHSL' in /Applications/MAMP/htdocs/CFJ/static/less/randomColor.less:8:8
7 .randomColor {
8   color: lighten(@color, 50%);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions