trellis_css 0.9.1 copy "trellis_css: ^0.9.1" to clipboard
trellis_css: ^0.9.1 copied to clipboard

CSS utilities for the Trellis template engine — SASS compilation and fragment-scoped CSS via tl:scope.

example/example.dart

import 'package:trellis/trellis.dart';
import 'package:trellis_css/trellis_css.dart';

void main() {
  final css = TrellisCss.compileSassString(r'''
    $primary: #2563eb;

    .button {
      color: $primary;
    }
  ''');

  final engine = Trellis(dialects: [CssDialect()], loader: MapLoader({}));

  print(css);
  print(engine.runtimeType);
}
0
likes
0
points
271
downloads

Publisher

unverified uploader

Weekly Downloads

CSS utilities for the Trellis template engine — SASS compilation and fragment-scoped CSS via tl:scope.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

html, sass, trellis

More

Packages that depend on trellis_css