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 trialPresian Nenov
3,872 PointsI need help with this error!
My code:
// =========================================
// Color Functions
// =========================================
// Variables
$base: #3acec2;
$base-dark: darken($base, 25%);
$base-light: lighten($base, 25%);
$complement: complement($base);
$complement-light: lighten($complement, 10%)
// Header
header {
background-color: $base;
h1 {
color: $complement;
}
p {
color: $base-dark;
}
}
// Nav
.main-nav a {
color: $base-light;
}
// Button
.btn {
color: $base;
background-color: $complement;
&:hover {
background-color: $complement-light;
}
}
The error I'm getting: error scss/_color-functions.scss (Line 13: Invalid CSS after "header ": expected selector o r at-rule, was "{")
1 Answer
Rohald van Merode
Treehouse StaffHey Presian Nenov 👋
It looks like you're missing a semicolon at the end of line 10:
$complement-light: lighten($complement, 10%);
I hope this helps! 😄
Presian Nenov
3,872 PointsPresian Nenov
3,872 PointsYup it works now, small mistakes like that can mess you up lol. Thanks!