OCaml-css is an OCaml library to parse and print CSS. It can also expand namespaces and perform computations on property values.
Parsing uses Angstrom to dynamically choose the parser when encountering a property declaration.
Parser can be extended by defining additional properties.
Documentation is available here.
Development is hosted on Framagit.
There are already some predefined properties. Contributions are welcome to add more. Shorthand properties are defined too.
CSS is released under GPL3 license.
The css
package is installable with opam:
opam install css
Current state of OCaml-css can be installed with:
opam pin add css git@framagit.org:zoggy/ocaml-css.git $