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.

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,701 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.

http://sass-lang.com/guide