Skip to content

glowinthedark/css_stylesheet_preview_generator

Repository files navigation

CSS Preview generator

Generate an HTML file for visualizing all styles defined in a CSS stylesheet.

Dependencies

The script requires the cssutils module which can be installed with:

pip3 install cssutils

Usage

python3 css_stylesheet_preview_generator.py stylesheet.css -o preview.html

## verbose mode
python3 css_stylesheet_preview_generator.py stylesheet.css -v -o preview.html

If no output file is specified then HTML is written to stdout. Debug info goes to stderr.

Sample HTML output

CSS stylesheet HTML preview — generated image

Releases

No releases published

Packages

No packages published

Languages