Clone this repo:
  1. c9be48b Fix crash using `Color.css` with rgb(), rgba(). (#104) by Đào Hoàng Sơn · 7 days ago master
  2. 1432076 prepare for stable, null-safe version (#127) by Kevin Moore · 3 weeks ago 0.17.0
  3. 11d4cf4 Add changelog entry for null safety (#126) by Nate Bosch · 5 weeks ago 0.17.0-nullsafety.0
  4. 609c576 Prepare to publish (#125) by Nate Bosch · 5 weeks ago
  5. e411d86 Add a psuedo compound selector global-context by Ted Sander · 10 weeks ago

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.