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 Getting Started with Sass Compiling Sass to CSS

Justin Warren
Justin Warren
7,805 Points

Where is the command line in windows?

A bit confused on this. So do you have to have a pre-existing scss file that you then put into the command line. Then it generates a Sass file?

2 Answers

David Kanwisher
David Kanwisher
9,751 Points

That's correct Justin. First you create a SCSS file and write your SCSS syntax in that file. You then can follow instructions on the Sass website to download and install the ruby/sass tool to gain the ability to compile this new file into CSS from the command line.

You can use windows command prompt, or download git bash on a Windows machine. Once in the command prompt you can "change directories" until you're inside the directory that contains your SCSS file. That's when you run the command outlined in the video. This will take your SCSS file and compile it into a CSS file that your browser can read.

Brandon Benefield
Brandon Benefield
7,739 Points

There are plenty of ways to include sass/scss in your projects. I'm going to assume you're not using node so I'd suggest you go ahead and take a look at the sass website.