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

Angel Franco
seal-mask
.a{fill-rule:evenodd;}techdegree
Angel Franco
Front End Web Development Techdegree Student 11,001 Points

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

Tyler Pfledderer
seal-mask
PLUS
.a{fill-rule:evenodd;}techdegree seal-36
Tyler Pfledderer
Treehouse Project Reviewer

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?

Angel Franco
seal-mask
.a{fill-rule:evenodd;}techdegree
Angel Franco
Front End Web Development Techdegree Student 11,001 Points

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.