Sass makes CSS fun!
Go to file
dependabot[bot] 546881d38e
Bump bufbuild/buf-setup-action from 1.31.0 to 1.32.0 (#3870)
Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.31.0 to 1.32.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](https://github.com/bufbuild/buf-setup-action/compare/v1.31.0...v1.32.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 13:50:34 -07:00
.github Bump bufbuild/buf-setup-action from 1.31.0 to 1.32.0 (#3870) 2024-05-20 13:50:34 -07:00
accepted [CSS Function/Mixin Prep] Mark as accepted and update spec (#3854) 2024-04-30 21:19:57 +00:00
js-api-doc [CSS Function/Mixin Prep] Mark as accepted and update spec (#3854) 2024-04-30 21:19:57 +00:00
proposal Remove duplicate section in proposal (#3857) 2024-05-02 20:26:34 +00:00
spec Explicitly specify underscore-insensitivity for module member names (#3866) 2024-05-16 22:04:07 +00:00
test Fix NodePackageImporter version compatibility (#3788) 2024-03-27 11:43:24 -07:00
tool Proposal: Package Importer and built-in Node implementation (#3660) 2023-09-22 23:09:36 +00:00
.eslintrc.json Test that typedoc builds with no warnings 2021-10-01 17:36:53 -07:00
.gitignore Use buf instead of protoc to compile protobufs (#3670) 2023-09-07 18:05:19 -07:00
.markdownlint-cli2.yaml Add a Markdown linter (#3667) 2023-08-22 21:10:27 +00:00
.prettierrc.cjs Rate limit Markdown link checks (#3112) 2021-08-24 15:56:47 -07:00
buf.gen.yaml Use buf instead of protoc to compile protobufs (#3670) 2023-09-07 18:05:19 -07:00
buf.work.yaml Use buf instead of protoc to compile protobufs (#3670) 2023-09-07 18:05:19 -07:00
CODE_OF_CONDUCT.md https-ify sass-lang.com urls (#72) 2019-03-04 16:39:24 -08:00
CONTRIBUTING.md Fix link in Contributing docs (#3705) 2023-09-28 22:42:43 +00:00
EMBEDDED_PROTOCOL_CHANGELOG.md Implement access tracking for containingUrl (#3835) 2024-04-17 21:33:07 +00:00
LICENSE Add an MIT license (#3286) 2022-04-18 17:47:45 -07:00
package-lock.json Add a Markdown linter (#3667) 2023-08-22 21:10:27 +00:00
package.json Change markdownlint script executable, fix removed link (#3669) 2023-09-14 16:07:01 -07:00
README.md Treat certain user-caused errors as compilation failures (#98) 2022-12-08 12:07:52 -08:00
tsconfig.json Use the URL type from the DOM definitions, not from Node (#3214) 2021-12-10 21:11:27 +00:00
typedoc.json Update to TypeDoc 0.24 (#3581) 2023-05-18 16:09:10 -07:00

Sass

@SassCSS on Twitter    stackoverflow    Gitter

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.

$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. That's all—there are no external dependencies and nothing else you need to install.

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

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:

  • 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.

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. Every version has a Git tag of the form proposal.<name>.draft-<version>. A new version should be created for each batch of changes.

Every version has a major version, and they may have a minor version as well (indicated <major>.<minor>). The minor version should be incremented for changes that don't affect the intended semantics of the proposal; otherwise, the major version should be incremented.