package css

  1. Overview
  2. Docs
CSS parser and printer

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml-css-0.4.0.tar.bz2
md5=d402b78761349700da30c192ab9735a3
sha512=9f0ebbf61b37a4df23e3d88fec450ceb75c601b07ae5c52a133c803ba919266fa0cf257b72e43797741e1cd56d651b08a68d1be4ef1fd3fea32857989ff2ca9c

Description

Published: 19 Nov 2025

README

OCaml-css -- CSS parser, printer and more

🌐 OCaml-css homepage

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

Documentation is available here.

Development

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.

Installation

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

Releases

See Changes file for release details.

Dependencies (7)

  1. rdf >= "1.0.0"
  2. logs >= "0.7.0"
  3. iri >= "1.0.0"
  4. fmt >= "0.9.0"
  5. angstrom >= "0.16.0"
  6. ocaml >= "5.1.0"
  7. dune >= "2.9"

Dev Dependencies (3)

  1. odoc with-doc
  2. lwt_ppx with-test
  3. alcotest with-test

Used by (1)

  1. stk >= "0.4.0"

Conflicts

None