css-explore

Visualizations of a css parse tree


License
MIT
Install
pip install css-explore==1.1.0

Documentation

Build Status Azure DevOps coverage pre-commit.ci status

css-explore

This originally started as a tool to visualize the parse tree of a css document, but more or less turned into a pretty printer.

The reason I made this project was to compare compilation outputs of various implementations of scss in an effort to switch a codebase from one compiler to another.

This uses:

Usage

$ css-format --help
usage: css-format [-h] filename

positional arguments:
  filename

optional arguments:
  -h, --help  show this help message and exit

Example run:

$ echo 'body{color:red}' > test.css
$ css-format test.css
body {
    color: red;
}