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

phillipe Nelson
Front End Web Development Techdegree Student 4,823 PointsTask 4 says to reverse the order of the arguments and getting an error that my parameters don't exist.
code: {
@mixin square($color: black, $size) {
border: 1px solid $color;
width: $size;
height: $size;
}
.box { @include square($color: red, 50px); }
@mixin square($color: black, $size) {
border: 1px solid $color;
width: $size;
height: $size;
}
.box {
@include square($color: red, 50px);
}
2 Answers

Steven Parker
241,485 PointsWhen they asked you to "reverse the arguments", they only meant in the include line. It looks like you also changed the mixin definition which is the cause of the message.
You might also need to specify both parameter names when you use the mixin.

phillipe Nelson
Front End Web Development Techdegree Student 4,823 PointsYep, that worked. But those instructions were not clear, in my opinion.
"@mixin square($size, $color: black) { width: $size; height: $size; border: 1px solid $color; }
.box { @include square($color: red, $size: 50px); }"
Thank you
Steven Parker
241,485 PointsSteven Parker
241,485 Pointsphillipe Nelson — you might want to send a note to the Support staff about the instructions.
Glad i could help. You can mark a question solved by choosing a "best answer".
And happy coding!