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 Sass Basics (retired) Speeding up Workflow with Sass Importing Files

Is the file extension required for importing?

When importing into a scss file, am I only able to import other scss files, or can I import css/txt files as well?

2 Answers

I am not 100% sure, but I think only scss files. But all you have to do is rename your css file or, if you are like me, copy the css file and rename the copy. The actual code is valid in Sass.

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

I would think that because CSS is fully compatible with Sass, you could import a CSS file, though I'm not sure why you would want to. The scss file is going to be output to CSS, so basically you would be taking CSS and outputting CSS.

Mainly, I was just wondering if renaming the normalize.css file was necessary, but it's good to know in case I'm involved in a project that's moving from vanilla CSS to Sass.