Important
This repo has moved to https://github.com/dart-lang/tools/tree/main/pkgs/csslib
A Dart CSS parser.
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
.