Fork me on GitHub

go-scss

A pure-Go Sass/SCSS compiler whose output tracks Dart Sass — no libsass, no Node, no cgo.

CGO-freeSCSS + indented .sassexpanded + compressed2–3× faster than dart-sassBSD-3-Clause
zsh
$ go get github.com/go-scss/scss@latest
One organisation, 1 repositories

Compiles both the SCSS and the indented .sass syntaxes, in the expanded and compressed output styles, matching dart-sass byte-for-byte on the common real-world surface. Correctness is defined by the reference implementation, not by our own expectations.

It is also 2–3× faster than dart-sass 1.102 and libsass on the cross-implementation corpus — measured, with the numbers in BENCHMARKS.md rather than in a headline.

Repositories

scss compiler

SCSS + .sass → CSS, dart-sass parity

scss.CompileString and friends: the whole compiler as an ordinary Go package.

CI Go reference

One static Go dependency for static-site generators, asset pipelines and language bindings — the point being that adding Sass support no longer drags in a Node or C toolchain.