csslib 0.17.2 icon indicating copy to clipboard operation
csslib: ^0.17.2 copied to clipboard

A library for parsing and analyzing CSS (Cascading Style Sheets)

A Dart CSS parser.

Usage #

Parsing CSS is easy!

import 'package:csslib/parser.dart';

main() {
  var stylesheet = parse(
      '.foo { color: red; left: 20px; top: 20px; width: 100px; height:200px }');
  print(stylesheet.toDebugString());
}

You can pass a String or List<int> to parse.

21
likes
110
pub points
99%
popularity

Publisher

verified publisher icontools.dart.dev

A library for parsing and analyzing CSS (Cascading Style Sheets)

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

source_span

More

Packages that depend on csslib