| [](https://github.com/dart-lang/tools/actions/workflows/csslib.yaml) | |
| [](https://pub.dev/packages/csslib) | |
| [](https://pub.dev/packages/csslib/publisher) | |
| A Dart [CSS](https://developer.mozilla.org/en-US/docs/Web/CSS) parser. | |
| ## Usage | |
| Parsing CSS is easy! | |
| ```dart | |
| 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`. |