CSSParser

December 10, 2025 ยท View on GitHub

A CSS parser for Pharo, providing a model and tools to read, interpret, and manipulate CSS stylesheets.

CI Pharo 11 Pharo 12 Pharo 13

How to get CSSParser

To install a version of CSSParser, use one the following scripts inside a playground or in your project baseline.

Latest development version

Metacello new
	baseline: 'CSSParser';
	repository: 'github://pharo-contributions/CSSParser:main';
	onConflictUseLoaded;
	load

Add in your baseline

spec baseline: 'CSSParser' with: [ spec repository: 'github://pharo-contributions/CSSParser:main' ].

Model

CSSParser provides an object model for CSS syntax and structure.

image

Origin project

Originally inspired by the HTML/CSS Parser for Squeak.