sass
1.108.2, released 10 days ago by sass-lang.com
A Dart implementation of Sass for compiling Sass and SCSS to CSS.
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.
- pub_semversass depends on itVersions and version constraints implementing pub's versioning policy.
- stack_tracesass depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- package_configsass depends on itRead and write Dart package configuration files.
- poolsass depends on itManage a finite pool of resources to control concurrent operations.
- asyncsass depends on itUtility classes and helpers that extend Dart's async library.
- source_spansass depends on itStandard representation for source code locations, spans, and human-friendly error messages.
- watchersass depends on itMonitors file system changes and notifies when files are added, removed, or modified.
- source_mapssass depends on itA Dart library to parse, build, and manipulate source map v3 files.