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

CSS

Erik Nemesis
Erik Nemesis
13,356 Points

You can also import without the underscore.

It's not a question but just a note that you can also import without putting the underscore.

@import "variables"

And you can omit the "scss".

The underscore is used to denote that the file is a partial, meaning that it shouldn't be rendered into css. Depending on the setup of the compiler, if you didn't use an underscore, it could end up generating more than one file, in your example it would create a variables.css.

This details the explanation a little better:

http://stackoverflow.com/questions/31311147/underscore-in-partial-sass-file

1 Answer

Kevin Korte
Kevin Korte
28,149 Points

Luke is correct. The _ in the file name keeps that file from being compiled into it's own css file.