CSSParser

Description

CSSParser is a Pharo library that provides an object model and tools to read, interpret, and manipulate CSS stylesheets, including support for parsing .css files

Details

Source
GitHub
Dialect
pharo (65% confidence)
License
MIT
Stars
2
Forks
4
Created
Nov. 21, 2022
Updated
Feb. 11, 2026
Topics
cascading-style-sheets css parser pharo pharo-smalltalk

Categories

Serialization

README excerpt

# CSSParser

A CSS parser for [Pharo](https://pharo.org), providing a model and tools to read, interpret, and manipulate CSS stylesheets.

[![CI](https://github.com/pharo-contributions/CSSParser/actions/workflows/CI.yml/badge.svg)](https://github.com/pharo-contributions/CSSParser/actions/workflows/CI.yml)
[![Pharo 11](https://img.shields.io/badge/Pharo-11-informational)](https://pharo.org)
[![Pharo 12](https://img.shields.io/badge/Pharo-12-informational)](https://pharo.org)
[![Pharo 13](https://img.shields.io/badge/Pharo-13-informational)](https://pharo.org)

## 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

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

### Add in your baseline

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

## Model

CSSParser provides an object model for CSS syntax and structure.

![image](https://user-images.githubusercontent.com/49183340/215075087-031fceec-913d-4de9-b13f-f9c4c32d2aa7.png)

## Origin project

Originally inspired by the [HTML/CSS Parser for Squeak](http://www.squeaksource.com/htmlcssparser/).
← Back to results