Clone this repo:
  1. 341e7b2 Latest CI setup, test on oldest supported SDK (#130) by Kevin Moore · 14 days ago master
  2. 2126592 Merge pull request #129 from dart-lang/franklinyow-patch-1 by Franklin Yow · 5 weeks ago
  3. 4dc8d3e Update LICENSE by Franklin Yow · 5 weeks ago
  4. 7eb3467 Fix latest lints (#128) by Kevin Moore · 8 weeks ago
  5. c9be48b Fix crash using `Color.css` with rgb(), rgba(). (#104) by Đào Hoàng Sơn · 2 months 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.