# Sass

> A language for writing CSS with extra tools, like nesting. It turns into plain CSS.

**Field:** Software Development  
**Category:** Web Development  
**Also known as:** SCSS, Sass CSS, .scss, Syntactically Awesome Style Sheets

## Think of it like

It is like a shorthand for notes. You write fast, then copy it out neat for others.

## Definition

Sass is a language that adds extra tools to CSS, then turns into plain CSS for the browser. It lets you nest rules, share pieces of style, and split your styles into many files. Most people write it in .scss files, where any normal CSS still works. A tool called a compiler turns those files into one .css file. Browsers never see the Sass itself.

## Example

Jack has 30 style files for a big shop site. He writes them in Sass, and one build step joins them into one small CSS file.

## Example code

```scss
$brand: teal;
.card {
  padding: 16px;
  h2 { color: $brand; }
}
```

A Sass value and a nested rule. It compiles to .card h2 { color: teal; }.

## Why it matters

Big stylesheets stay tidy and short. Many CSS frameworks, like Bootstrap, are written in it.

## Common mistake

Nesting rules five levels deep. The CSS that comes out gets long selectors that are hard to beat.

## Three principles

- **Becomes CSS.** A compiler turns it into plain CSS.
- **Nesting.** Rules can sit inside other rules.
- **SCSS is CSS plus.** Normal CSS works in a .scss file.

## Related terms

- [Cascading Style Sheets (CSS)](https://learn.benibix.com/term/development/css)
- [CSS Custom Properties](https://learn.benibix.com/term/development/css-custom-properties)
- [CSS Framework](https://learn.benibix.com/term/development/css-framework)
- [Bootstrap](https://learn.benibix.com/term/development/bootstrap)
- [Transpiler](https://learn.benibix.com/term/development/transpiler)

## Told apart from

- [Sass Variables vs CSS Custom Properties](https://learn.benibix.com/compare/sass-vs-css-custom-properties): People think Sass variables and CSS custom properties are the same thing, and they are not. A Sass variable, like $brand, is used up when the Sass turns into CSS, so the browser never sees it. A custom property, like --brand, lives in the browser. Code can change it while the page runs, which is how dark mode can work.

## Taught in

- [CSS Frameworks and Sass](https://learn.benibix.com/learn/development-web/css-frameworks-and-sass): HTML, CSS and JS, 11/14

![Three panels. Custom properties: one line on :root sets --brand to teal, and three arrows carry it to a button, a link and a heading. Sass: a styles.scss file with a nested rule goes through a compile arrow and comes out as plain styles.css. CSS framework: ready-made classes such as btn, row and col-6 are dropped into the HTML, and a styled button and a two-column row appear.](https://learn.benibix.com/diagrams/dev5-css-tools.svg)

---

Source: https://learn.benibix.com/term/development/sass
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
