Generates a list of RGB colors on a CSS file and provides CSV output
npm -g cssrgb
cssrgb with as many css URLs as you want. Minimum is 1 URL
cssrgb http://your-domain.com/css/yourcss.css [http://your-domain.com/css/another.css http://your-domain.com/css/yet_another.css]`
What is it?
cssrgb is a small package that:
- Analyses a given CSS url
- Parses all colors in hexadecimal
- Converts the
- Generates a
CSVfile with the following format:
This output is used to generate color charts by RGB proximity, like this:
This is the first step of this project, next iteration will be to generate html output with this proximity algorithm, instead of only
It's common in big CSS files to have slight variations of colors, what can pollute the styles. Usually result of using color picker to get a color value instead of reusing what was already available.
The idea of this project is to first map out used colors by visual proximity, and in a second step replace them by a standart one, making the CSS consistent.
Feel free to fork and do pull requests, or open an issue here.