
Plain CSS works well for a page or two. On a large product it starts to hurt: the same colour value appears in forty files, a button style is copied and slightly changed in five places, and nobody is sure which rule can be deleted safely. Sass was built to give stylesheets the tools programmers already had for code: variables, reusable blocks, functions and files that can be split into modules. Everything compiles back to ordinary CSS, so the browser never knows Sass was involved.
This article explains what Sass is, how it works, where it still earns its place now that CSS has grown, and how it compares with Less, PostCSS and utility-first frameworks.
What is Sass?
Sass, short for Syntactically Awesome Style Sheets, is a stylesheet language that extends CSS and compiles into it. You write .scss or .sass files, run them through the Sass compiler, and ship the resulting .css file. It is often called a CSS preprocessor, and the Sass team describes it as a CSS extension language. It is open source under the MIT licence.
Sass was designed by Hampton Catlin and first released on 28 November 2006. It grew out of Haml, Catlin's templating language for Ruby on Rails, and Natalie Weizenbaum, who has been its primary developer since the early commits, wrote most of the original Ruby implementation. Chris Eppstein, the creator of the Compass framework, later joined the core team, and together they designed the SCSS syntax that shipped with Sass 3.0 in May 2010.
The implementation has changed more than the language. The original Ruby Sass reached end-of-life on 26 March 2019, after Dart Sass 1.0 was released in March 2018. LibSass, the C++ implementation behind the popular Node Sass package, was deprecated in October 2020 and declared end-of-life in October 2025. Dart Sass, published on npm simply as sass, is now the only maintained implementation and the one that receives new features.
How Sass works
Two syntaxes, one language. SCSS ("Sassy CSS") uses braces and semicolons, and any valid CSS file is also a valid SCSS file, which is why most teams use it. The older indented syntax, in .sass files, drops braces and semicolons and relies on indentation. Both compile to the same CSS.
Compilation at build time. The browser never reads Sass. The compiler runs during development or in the build pipeline, usually through a bundler such as Vite or webpack, or a framework that wraps one. It resolves variables, expands mixins and nesting, evaluates functions and writes plain CSS, with source maps so browser tools can point back to the original line.
Modules instead of one global scope. Since Dart Sass 1.23.0 in October 2019, Sass has a module system. @use loads another file and gives its variables, mixins and functions a namespace, so colors.$primary cannot collide with a variable of the same name elsewhere. @forward re-exports members to build a clean public API for a design system. The older @import rule, which dumped everything into one global scope, was officially deprecated in Dart Sass 1.80.0 in October 2024 and is planned for removal in Dart Sass 3.0.
Key features
- Variables for colours, spacing, breakpoints and other design tokens, resolved at compile time.
- Nesting of selectors and media queries, including joining strings with
&to build BEM class names such as.card__title, which native CSS nesting cannot do. - Mixins (
@mixinand@include) for reusable blocks of declarations that accept arguments. - Functions with
@function, plus built-in modules such assass:math,sass:colorandsass:map. - Control flow with
@if,@each,@forand maps, which makes it practical to generate utility classes or a full colour scale from a few values. - Partials and modules, so a large codebase can be split into small files with explicit dependencies.
- `@extend` and placeholder selectors for sharing rules between selectors, best used sparingly.
Where Sass is used
- Design systems and component libraries that need tokens, generated scales and a single source for spacing and colour.
- Large, long-lived applications where hundreds of stylesheets must stay consistent over years.
- CSS frameworks and themes. Bootstrap is written in Sass, and customising it means overriding Sass variables before compiling.
- Component-scoped styles in Angular, Vue and Next.js projects. Next.js and Vite compile
.scssfiles once thesasspackage is installed, and Angular accepts any tool that outputs CSS. - Content-heavy and marketing sites built with a classic BEM structure rather than utility classes.
When to choose Sass, and when not to
Choose Sass when:
- You maintain a large stylesheet architecture and need modules, namespaces and shared tokens with clear dependencies.
- You generate styles from data, for example spacing utilities or theme colours from a map.
- The codebase is already built on Sass or on a framework such as Bootstrap that expects it.
- Your team prefers semantic class names in separate stylesheets over utility classes in markup.
Look elsewhere when:
- The project is small and modern CSS already covers the need. Custom properties, native nesting and cascade layers handle much of what preprocessors were adopted for, without a build step.
- Values must change at runtime, such as a user-selected theme. Sass variables disappear at compile time; CSS custom properties are the right tool, and Sass can feed them.
- The team builds with components and wants styles next to markup. A utility-first framework such as Tailwind CSS usually fits that workflow better.
- An old project still depends on Node Sass or
@importeverywhere. Plan a migration to Dart Sass and the module system first; the official Sass migrator automates much of it.
Sass and its alternatives
| Option | What it is | Best fit |
|---|---|---|
| Sass (SCSS) | Preprocessor with modules, mixins and functions | Large stylesheet architectures, design systems |
| Less | Preprocessor with a CSS-like syntax | Existing Less codebases |
| PostCSS | Plugin pipeline that transforms CSS | Autoprefixing, future CSS syntax, custom transforms |
| Modern CSS | Custom properties, nesting, layers in the browser | Smaller projects, runtime theming |
| Tailwind CSS | Utility classes generated at build time | Component-based apps with a design system |
The classic comparison is Sass vs Less. Both appeared in the same era, and Less, first released in May 2009, was in the words of Sass's lead developer "clearly heavily inspired by Sass". Today Sass has the more active development, a module system and the larger ecosystem, which is why most new preprocessor projects choose it. Our Less article covers that side. PostCSS is not really a rival: it often runs after Sass in the same pipeline to add vendor prefixes.
How we use Sass at Internative
We use Sass in projects that need a structured, long-lived styling architecture. Its modules help us keep large CSS codebases maintainable and implement design systems that grow with the product without turning into a tangle of overrides.
If you are building a design system or need a design handed over as maintainable front-end code, our design-to-code handoff team can help you decide whether Sass, utility classes or plain CSS fits your project.
Frequently asked questions
What is the difference between CSS and SCSS?
CSS is the language browsers read. SCSS is the main syntax of Sass: a superset of CSS that adds variables, nesting, mixins, functions and modules. A browser cannot read SCSS directly, so it is compiled into CSS during the build. Because every valid CSS file is valid SCSS, you can rename a .css file to .scss and adopt features gradually.
What is the difference between Sass and SCSS?
Sass is the language and the tool; SCSS is one of its two syntaxes. SCSS uses braces and semicolons like CSS. The original indented syntax, in .sass files, uses indentation instead. Both have the same features and compile to the same output.
What does Sass stand for?
Sass stands for "Syntactically Awesome Style Sheets". The project writes its name as "Sass", not in capitals. It is free and open source under the MIT licence.
Is Sass still used?
Yes. Dart Sass is actively maintained, Bootstrap is built with it, and tools such as Vite and Next.js compile it with little setup. What changed is the implementation: Ruby Sass and LibSass are retired, so projects should use Dart Sass and move from @import to @use.
Which is better, Sass or Less?
For new projects, Sass is usually the safer choice: it has a module system, an active maintainer team and the wider ecosystem. Less remains a reasonable choice inside codebases already built on it, and the two languages are similar enough that a team can move between them.
Keep reading
The articles that follow this one.



