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

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. :)