CSS variables (gomakethings.com)
submitted 1 month ago by mac to c/css
you are viewing a single comment's thread
view the rest of the comments
[-] spartanatreyu 7 points 1 month ago

Let me reverse that question and ask: Why use Sass?

[-] [email protected] 2 points 1 month ago

Sass is lovely. I love being able to split my CSS into multiple files in the same way I would split the rest of my code. It's really nice for making more maintainable CSS on larger projects.

My portfolio would've been hell to make without SASS helping with the organization.

[-] spartanatreyu 1 points 1 month ago

CSS can already be split into multiple files though.

So why not just use CSS?

[-] [email protected] 1 points 1 month ago

Sass is to CSS what jQuery is to Javascript.

[-] [email protected] 2 points 1 month ago

It has variables as well as modules, easily nestable definitions, and inheritance so that you can have base classes

[-] spartanatreyu 2 points 1 month ago

CSS has variables, modules and nesting.

By inheritance, do you mean the extends keyword? Because if so, it just seems like going further down the misguided BEM path instead of picking better selectors.

this post was submitted on 02 Apr 2024
13 points (88.2% liked)


419 readers
1 users here now

founded 11 months ago