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

Stage 3 – Speeding up Workflow with Sass

Question:

Set the background of the <a> tag to be a 10% desaturated version of the variable, using the desaturate function. (HINT: desaturate works a lot like the lighten function - taking a color, then a percentage!)

My code:

Set the background of the <a> tag to be a 10% desaturated version of the variable, using the desaturate function. (HINT: desaturate works a lot like the lighten function - taking a color, then a percentage!)

I keep getting an error: Oops! It looks like Task 1 is no longer passing.

ANy help would be appreciated. Thanks

FIXED!

Im actually stuck on this same question. what did you do different? this is my code

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

5 Answers

For Challenge 3 of 3 on Sass Basics: Creating a Color Palette <br> This is the accepted answer

$complement: complement(red);

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

Glad you found a solution to your problem!

Sorry to bother but I'm actually stuck on this problem. can you help? this is my code $complement: desaturate (red, 5%); a { color: lighten(red, 5%); background: $desaturate (red, 10%); }

Here my answer:

$complement: complement(red);

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

Here's the answer, my code: $complement: complement(red); //from stage 2

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

Melvin's code is just missing: $one-color: red;