csslib 0.16.2
csslib: ^0.16.2 copied to clipboard

Dart native js
Flutter Android iOS web

A library for parsing CSS.

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 }');

You can pass a String or List<int> to parse.