0

I'm having some trouble using a less variable into a less function. My code looks like this :

@primaryColor: "#fff";
@customColor: darken(@primaryColor, 5%);

But I'm getting the following error :

Error evaluating function darken: Argument cannot be evaluated to a color

I have no idea what I'm doing wrong. Can anyone help me?

0

1 Answer 1

1

Remove the quotes around #fff :

@primaryColor: #fff;
@customColor: darken(@primaryColor, 5%);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.