csslib 1.0.2 copy "csslib: ^1.0.2" to clipboard
csslib: ^1.0.2 copied to clipboard

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

Build Status pub package package publisher

A Dart CSS parser.

Usage #

Parsing CSS is easy!

import 'package:csslib/parser.dart';

void 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.

49
likes
160
points
5.66M
downloads

Publisher

verified publishertools.dart.dev

Weekly Downloads

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

Repository (GitHub)
View/report issues
Contributing

Topics

#css

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

source_span

More

Packages that depend on csslib