Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sass

> 编程语言
Open source

Sass makes CSS fun!

15.4K stars0 likes2 views
WebsiteGitHub

About

Sass makes CSS fun!

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

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

Issues· 113 open

View all issuesOpen on GitHub
  • #4048

    Improve checks for invalid CSS function names

    bugCSS compatibilityrequires deprecationUpdated Sep 24, 2026
  • #4249

    Improving the format for stack traces in the embedded protocol

    enhancementembeddedUpdated Sep 24, 2026
  • #4252

    Improve the expressiveness of deprecation controls

    enhancementUpdated Sep 23, 2026
  • #739

    Dynamic Dependencies

    enhancementplannedUpdated Sep 16, 2026
  • #3702

    Deprecate and remove meta.feature-exists()

    enhancementrequires deprecationUpdated Jun 15, 2026
  • #4207

    Sass incorrectly parses adjacent compound selectors as descendant combinators

    bugCSS compatibilityrequires deprecationUpdated May 22, 2026
  • #3021

    Cannot use @debug before @use

    enhancementUpdated Apr 21, 2026
  • #3171

    Read-only variables for used modules

    enhancementunder considerationUpdated Apr 9, 2026
  • #4120

    Drop support for misplaced rest arguments

    bugblockedUpdated Apr 8, 2026
  • #1912

    Increase strictness about whitespace around minus sign

    enhancementrequires deprecationblockedUpdated Apr 8, 2026

> Tags

TypeScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言