Skip to content
pubscout

sass

1.108.2, released 10 days ago by sass-lang.com

A Dart implementation of Sass for compiling Sass and SCSS to CSS.

$ flutter pub add sass
Source repository

What it does

Provides a full Sass implementation in Dart that can be used via the command line or as a library to compile stylesheets. It supports parsing and compiling Sass code into standard CSS.

AI-written summary of version 1.108.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to compile Sass or SCSS stylesheets within a Dart environment.
  • You prefer a native Dart implementation of the Sass preprocessor.

Skip it when

  • You are looking for UI widget kits or runtime theme switching components for Flutter.
  • You do not use Sass/SCSS in your styling workflow.

Strengths

  • High performance and portable Dart implementation.
  • Can be used as a command-line tool, a Dart library, or through JavaScript/npm.

Weaknesses

  • Not a runtime Flutter styling engine; it is a preprocessor for stylesheets.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
25

Add the package to pubspec.yaml and import 'package:sass/sass.dart' as sass.

import 'package:sass/sass.dart' as sass;

void main(List<String> args) {
  print(sass.compile(args.first));
}

Works with

Packages commonly used together with sass: ones it builds on, ones built on it, and its own family.