libcroco
« Back to VersTracker
Description:
CSS parsing and manipulation toolkit for GNOME
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: css parsing gnome library c
Install: brew install libcroco
About:
Libcroco is a standalone CSS parsing and manipulation library designed for the GNOME ecosystem. It provides a robust engine to parse CSS files into a structured object tree, enabling developers to analyze and modify style rules programmatically. Its primary value is offering a reliable, lightweight solution for handling CSS outside of a web browser context.
Key Features:
  • CSS2 and CSS3 parsing support
  • Object tree representation of stylesheets
  • SAX-like event-driven parsing API
  • Standalone C library with no external dependencies
Use Cases:
  • Parsing CSS within GNOME applications like the GTK theme engine
  • Analyzing and validating stylesheets in build tools
  • Programmatically modifying CSS rules for theming
Alternatives:
  • libcss – Part of the NetSurf project; similar goal but Libcroco is more tightly integrated with GNOME history.
  • GObject Introspection bindings – Libcroco provides these for Python and other languages, extending its utility beyond C.
Version History
Detected Version Rev Change Commit
Nov 25, 2024 11:55pm 1 VERSION_BUMP 49a76662
Sep 14, 2024 9:07pm 1 VERSION_BUMP 7432c60f