Skip to content

Sass

Medium — good to knowFrontend

ELI5 — The Vibe Check

Sass is CSS with superpowers — variables, nesting, mixins, and functions that vanilla CSS didn't have for years. You write Sass and it compiles down to regular CSS. These days CSS Variables have caught up a lot, but Sass is still popular for large codebases.

Real Talk

Sass (Syntactically Awesome Style Sheets) is a CSS preprocessor that extends CSS with variables, nesting, partials, mixins, functions, and inheritance. It compiles to standard CSS. Sass comes in two syntaxes: the indented Sass syntax and the more popular SCSS (CSS-like) syntax.

Show Me The Code

// Sass variables and nesting
$primary: #3b82f6;
$radius: 8px;

.card {
  border-radius: $radius;
  background: white;

  &:hover {
    background: lighten($primary, 40%);
  }

  .card__title {
    color: $primary;
    font-size: 1.5rem;
  }
}

When You'll Hear This

"The project uses Sass for variables and nesting." / "Sass is less necessary now that CSS has native variables and nesting."

Made with passive-aggressive love by manoga.digital. Powered by Claude.