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 trialpdiaz
16,073 PointsPalettes is an undefined variable?
I keep having a problem where sass keeps saying that the map $palettes is an undefined variable when I have it in my code
$palettes: ( grey: ( xx-light : lighten($grey, 43%), x-light : lighten($grey, 35%), light : lighten($grey, 12%), base : $grey, dark : darken($grey, 8%), x-dark : darken($grey, 16%), ), black: ( light : lighten($black, 10%), base : $black, dark : darken($black, 10%), ) );
//Call the color palette modifiers
@function palette($palette, $shade: 'base') {
@return map-get(map-get($palettes, $palette), $shade);
}
Justin Farrar
7,780 PointsI had that error message as well, It had to do with my spelling. I recommend combing through posting each of your sections for spelling. Utilities, Base, and Config.scss
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsBrendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsCan you post a workspace snapshot? Maybe it's the imports.