Simply feed it with some String srt object. It should work.
This is the simple version. For the version with HTML and coordinates parser please see the overkill branch here.
In case used in flutter Color should be wrapped and converted from csslib/parser to Color from dart:ui