theme-tinker
CLI for processing colours in config files
Install
npm install theme-tinker
To install globally for use anywhere in your system, add the -g
tag
Usage
theme-tinker
is a CLI tool which applies hue, saturation and lightness adjustments to all instances of hex color codes within the supplied file.
You can test the output of an operation by calling theme-tinker on a file without supplying an --output
location. This will print the resulting file to the console.
Currently only relative adjustments to the hue, saturation and lightness of each color in a file is supported. If I get round to it, or if requested, I plan to add support for absolute adjustments, randomised adjustments and contrast adjustmests.
Example
theme-tinker --input index.css --hue 30 --lightness -15 --output index.css