Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Sass
  3. dart-sass

dart-sass

MITDart1.99.0

The reference implementation of Sass, a CSS preprocessor that adds powerful features like variables, nesting, and mixins.

Visit WebsiteGitHubGitHub
4.2k stars377 forks0 contributors

What is dart-sass?

Dart Sass is the reference implementation of Sass, a CSS preprocessor that extends CSS with features like variables, nesting, mixins, and functions. It compiles .scss and .sass files into standard CSS, solving the problem of writing repetitive, hard-to-maintain stylesheets. It's the canonical version that replaced Ruby Sass, offering better performance and portability.

Target Audience

Frontend developers, web designers, and teams building modern websites or applications who want to write more maintainable, organized, and dynamic CSS.

Value Proposition

Developers choose Dart Sass because it's the official, actively maintained implementation with strong performance, cross-platform support (standalone, npm, Dart), and full compatibility with the Sass language. Its portability and regular updates make it a reliable choice over older implementations.

Overview

The reference implementation of Sass, written in Dart.

Use Cases

Best For

  • Creating maintainable CSS architectures with variables and mixins
  • Building component-based styles with nested selectors
  • Generating dynamic CSS with loops and conditionals
  • Managing color palettes and design tokens consistently
  • Organizing large stylesheets into modular imports
  • Automating repetitive CSS patterns with reusable code

Not Ideal For

  • Projects still reliant on the deprecated Node Sass API for JavaScript integration
  • Teams using Jest for testing without the ability to configure a custom test environment
  • Legacy codebases that depend on specific behavioral quirks of Ruby Sass

Pros & Cons

Pros

High Performance

Built on the optimized Dart VM, Dart Sass compiles stylesheets significantly faster than Ruby Sass, with performance benchmarks detailed in the repository's perf.md file.

Official & Canonical

As the primary implementation that replaced Ruby Sass, it is the standard for Sass language compliance and receives active updates, ensuring long-term reliability.

Cross-Platform Availability

Installable via npm, standalone binaries, package managers like Homebrew and Chocolatey, and Docker, making it accessible in virtually any development or production environment.

Full Sass Feature Set

Supports all core Sass features like variables, nesting, mixins, modules, and control directives, enabling maintainable and dynamic stylesheets as highlighted in the key features.

Cons

Legacy API Deprecation

The JavaScript API compatible with Node Sass is deprecated and will be removed in Dart Sass 2.0.0, forcing users to migrate to the new compile() functions, which can break existing integrations.

Jest Integration Hassles

Due to a Jest bug breaking instanceof, additional configuration with jest-environment-node-single-context is required for unit tests, adding setup complexity and potential maintenance overhead.

Behavioral Incompatibilities

Intentional differences from Ruby Sass, such as stricter @extend rules and changes to color arithmetic, can silently break legacy stylesheets without clear migration paths.

Frequently Asked Questions

Quick Stats

Stars4,186
Forks377
Contributors0
Open Issues61
Last commit3 days ago
CreatedSince 2016

Tags

#dart#stylesheets#sass#npm-package#cli-tool#frontend#web-development#css-preprocessor#build-tool

Built With

P
Protocol Buffers
J
JavaScript
n
npm
D
Docker
D
Dart

Links & Resources

Website

Included in

Sass1.9k
Auto-fetched 1 day ago

Related Projects

node-sassnode-sass

:rainbow: Node.js bindings to libsass

Stars8,477
Forks1,314
Last commit1 year ago
OctoLinkerOctoLinker

OctoLinker — Links together, what belongs together

Stars5,354
Forks283
Last commit2 years ago
libsasslibsass

A C/C++ implementation of a Sass compiler

Stars4,331
Forks474
Last commit6 months ago
sass-loadersass-loader

Compiles Sass to CSS

Stars3,893
Forks425
Last commit9 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub