Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Sass Basics (retired) Speeding up Workflow with Sass Creating a Color Palette

I don't know what's wrong with my Sass on the Creating a Color Palette Code Challenge for Sass stage 3 challenge 1.

$complement: #complement(red);

a {
  color: lighten(red, 5%);
  background: desaturate($complement, 10%);
}

3 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Richard;

I edited your code for markup.

You don't need to use the # symbol when you are assigning the $complement variable, everything else looks okay..

Your code needs to look something like:

/* Write your SCSS code below. */

/* Task 2 */
$complement: complement(red);


/* Task 1 */
a { 
  color: lighten(red, 5%); 
  background: desaturate($complement, 10%); /* <------ Task 3 */
}

Ken

Chris Shaw
Chris Shaw
26,676 Points

Hi Richard,

You have a pound/hash before your complement declaration, simply remove that so you end up with the below.

$complement: complement(red);

Thanks Chris Upjohn and Ken Alger, I must have put that hashtag/pound sign in my notes accidentally and went with it. Notes are fixed, code's are fixed, and I'm back on my way. I really appreciate it. ~Rich