Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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. 😁