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

Katia De Juan Bayona
Katia De Juan Bayona
6,757 Points

Sass vs SCSS

I am learning Sass, and I've seen that there are two variants, Sass (indentation based, without brackets), and SCSS (using brackets).

I have found Sass to be easier to read and write (maybe because I'm gotten used to use Slim for the HTML), however I see that most jobs, and most front-end developers are using SCSS. Is there a reason for it?

Since I am new to this, maybe there's an important aspect that I am missing about why choosing one variant over the other one.

Thanks a lot in advance! :)

1 Answer

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

Hi Katia!

If you prefer sass then you can go with it, it's up to what you prefer!

The reason scss is used more often is because of reasons like the syntax being really css-friendly. You can go from css to scss and back again without too much of a hassle. You could rename a .css file to .scss and it would still work!

I hope that helps

Jonas

Katia De Juan Bayona
Katia De Juan Bayona
6,757 Points

Thanks a lot Jonas for your answer. It is very helpful. :)