Skip to content

glowinthedark/css_stylesheet_preview_generator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

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