sass /sass

Sass makes CSS fun!

★ 15,372⑂ 2,227👁 549⑃ 1,143● 3,034▤ 1
TypeScriptMITCreated 2010-09-22sass-lang.com
Download: 3.4.21sass-3.4.21 ↓3.4.212016-01-12
-1
Daily
15,372
stars
2,227
forks
549
watchers
1,143
prs
3,034
issues
1
releases

README

  

  


Sass makes CSS fun again. Sass is an extension of CSS, adding nested rules,
variables, mixins, selector inheritance, and more. It's translated to
well-formatted, standard CSS using the command line tool or a plugin for your
build system.

scss
$font-stack: Helvetica, sans-serif;
$primary-color: 333;

body {
  font: 100% $font-stack;
  color: $primary-color;
}

@mixin border-radius($radius) {
  -webkit-border-radius: $radius;
     -moz-border-radius: $radius;
      -ms-border-radius: $radius;
          border-radius: $radius;
}

nav {
  ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  li { @include border-radius(10px); }

  a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
  }
}


 Install Sass

You can install Sass on Windows, Mac, or Linux by downloading the package for
your operating system [from GitHub] and [adding it to your PATH][PATH]. That's
all—there are no external dependencies and nothing else you need to install.

[from GitHub]: https://github.com/sass/dart-sass/releases
[PATH]: https://katiek2.github.io/path-doc/

If you use Node.js, you can also install Sass using [npm] by running

[npm]: https://www.npmjs.com/


npm install -g sass


However, please note that this will install the pure JavaScript
implementation of Sass, which runs somewhat slower than the other options listed
here. But it has the same interface, so it'll be easy to swap in another
implementation later if you need a bit more speed!

See the Sass website for more ways to install
Sass.

Once you have Sass installed, you can run the sass executable to compile
.sass and .scss files to .css files. For example:


sass source/stylesheets/index.scss build/stylesheets/index.css


 Learn Sass

Check out the Sass website for a guide on how to
learn Sass!

 This Repository

This repository isn't an implementation of Sass. Those live in
[sass/dart-sass] and [sass/libsass]. Instead, it contains:

[sass/dart-sass]: https://github.com/sass/dart-sass
[sass/libsass]: https://github.com/sass/libsass

 [spec/], which contains specifications for language features.
 [proposal/], which contains in-progress proposals for changes to the
  language.
 [accepted/], which contains proposals that have been accepted and are either
  implemented or in the process of being implemented.

[spec/]: https://github.com/sass/sass/tree/main/spec
[proposal/]: https://github.com/sass/sass/tree/main/proposal
[accepted/]: https://github.com/sass/sass/tree/main/accepted

Note that this doesn't contain a full specification of Sass. Instead, feature
specifications are written as needed when a new feature is being designed or
when an implementor needs additional clarity about how something is supposed to
work. This means many of the specs in spec/ only cover small portions of the
features in question.

 Versioning Policy

The proposals in this repository are versioned, to make it easy to track changes
over time and to refer to older versions. Eve

Top issues

Latest release

3.4.21 3.4.21 2016-01-12
3.4.21 (11 January 2016)

This is a bug fix release.
- Consistent output formatting for numbers close to an integer.
  Issue 1931
- Correctly round negative numbers that were almost but not quite a whole number (slightly greater than the negative number).
  Issue 1938
- Don't strip escaped semicolons from compressed output.
  Issue 1932
- Only compress around dashes within nth selectors.
  Issue 1933
- Selector compression of whitespace around commas was affecting attribute values.
  Issue 1947
- Make subtraction work when a unit is followed directly by a hyphen and then a period. For example,

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON