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

21st Century Skills

I'm having trouble making my sass variables work in other partials

Im on project 4 on tech-degree course and I made a 'variables' partial and made 5 color variables, but when I try using the variables in other partials it doesn't work. I don't understand what im suppose to do to use variables that were defined in other partials.

2 Answers

Hi Angel Franco !

How and where are you importing your variables. Are you using @import or @use/@forward?

Are you able to provide a link to the most current repo from Github?

I figured it out. I simply had to import my variables file first so it can be used for the other partials. Thank you for trying to help btw.

Awesome! You're welcome!

Yes, Angel Franco, if in doubt with SASS check the order and existence of the partials. 😁