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 trialKevin Osorio
15,767 PointsSass - Speeding up workflow with sass
I having a problem submitting this code challenge. Can anyone help me and explain what am I doing wrong?
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!)
$complement: desaturate (red, 10$);
a {
color: lighten(red, 5%);
background: $complement;
}
13 Answers
Kevin Osorio
15,767 PointsFIXED IT!! read the instructions carefully
John Norris
21,145 PointsFor 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%);
}
Jason Pallay
5,602 Points$complement: desaturate (red, 10$);
The 10 should be a % not a $.
I could be wrong, but that's all I see that looks off.
Kevin Osorio
15,767 Pointsby mistake i placed that "$" but even if I put a "%" it does not accept my code
Jason Pallay
5,602 PointsWhat does it say when you try?
Kevin Osorio
15,767 PointsI need to call the complement() function
Jason Pallay
5,602 PointsFrom reading the question over again, it seems as if they want something more like this:
$complement: red;
a { color: lighten (red, 5%); background: desaturate($complement, 10%); }
I have not taken this particular code challenge yet, but from everything I see, that's what I would try.
Kevin Osorio
15,767 Pointsyea nothing yet:/
Bruno Dias
10,554 PointsSame issue. It keep saying I should call the $complement No idea what I am doing wrong.
My code:
<pre> $complement: desaturate (red, 10%);
a { color: lighten(red, 5%); background: $complement; } </pre>
Any idea?
Joy Singharath
5,425 PointsThis worked for me!
$text-color: red; $complement: complement(red);
a{ color: lighten($text-color, 5%); background: desaturate($complement, 10%); }
Jessi Daniels
7,060 Pointsyes, that did it. @ Joy Singharath
Joy Singharath
5,425 PointsAwesome! =)
peterdemain
8,001 Points$complement: complement(red);
a {
color: lighten(red, 5%); background: desaturate($complement, 10%);
}
for the greater good ;)
peterdemain
8,001 Pointsi believe function(brackets) shouldn't have a space. I was stuck for a fews days