Sass adds variables, nesting, mixins, and modules to improve stylesheet authoring ergonomics.
Sass strengths
- Reusable mixins/functions.
- Structured partials/modules.
- Cleaner token and theme management.
Pitfall
Over-nesting in Sass can generate overly specific CSS and difficult debugging output.
Important interview questions and answers
- Q: Sass variables vs CSS variables?
A: Sass variables compile-time only; CSS variables remain runtime-aware. - Q: Why avoid deep nesting?
A: Produces brittle selectors and specificity inflation. - Q: Is Sass still useful with modern CSS?
A: Yes for tooling ergonomics, but use alongside modern native CSS features.
Next: Sass compiles to CSS—see the Sass track for maintainable stylesheets.