Sass Values

Beginner
11 Tutorials
Updated: Nov 2026

What You’ll Learn

Every Sass expression produces a value. Most are familiar from CSS (numbers, strings, colors), some are Sass-only collections (lists and maps), and recent Dart Sass adds calculations plus first-class function, mixin, and module values.

SCSS
$count: 3;                      // number
$name: "card";                  // string
$brand: #036;                   // color
$sizes: 10px 20px 30px;         // list
$theme: (primary: #036);        // map
$visible: true;                 // boolean
$nothing: null;                 // null

Value Index

Basic Values

The values you will use every day.

Collections

Group several values together.

Calculated & First-Class Values

Newer value types for advanced stylesheets.

Frequently Asked Questions

A value is the result of any Sass expression. Sass has numbers, strings, colors, booleans, null, lists, maps, calculations, and function, mixin, and module values.
Lists, maps, null, and the first-class function, mixin, and module values have no direct CSS equivalent and never appear as-is in the output.
Not always. A calculation like calc(1px + 2px) simplifies to a number, but calc(1px + 10%) stays a calculation value.
Yes. Use meta.get-function() and meta.get-mixin(), then call them with meta.call() and meta.apply().
Start with Numbers and Strings, then Lists and Maps. Calculations and first-class values come after.

Next: Sass Numbers

Start with the first tutorial in this section.

Continue →

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

6 people found this page helpful