GitHub - wehe/csscolorchart: A PHP Colour Chart Generator from CSS files find in specified directories · GitHub
Skip to content

About

A PHP Colour Chart Generator from CSS files find in specified directories

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

#CSS Colour Chart Generator CSS Colour Chart is a PHP script to generate a chart of all your CSS files from an array of directories.

It scans all paths for *.css files, parses each CSS file to find all uses of hexadecimal, RGB, RBGA and color names, and produces an html colour chart to show you the colours you have used and the files using them.

##What is its purpose? I wrote it to speed up & simplify website design, whereby projects often end up with a range of similar colours in a multitude of separate CSS files, rather than sticking to a set array of basic colours.

##Usage

require('csscolorchart.php');
$cssPath = array('themes/'); // array (or string) of directories to scan for CSS files
echo '<h1>CSS colors found in: ' . (is_array($cssPath) ? implode($cssPath, ', ') : $cssPath) . '</h1>';
$themes = new CssColorChart;
$themes->ignoreFiles = array('themes/thirdparty/'); // optional array of directories or files to exclude
echo $themes->listColors($cssPath);

##Screenshot CSS Colour Chart screenshot

About

A PHP Colour Chart Generator from CSS files find in specified directories

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors