A Color Palette Generator that regexes colours out of text files.
Themer is a Rust command-line tool designed to extract hexadecimal color codes from input files.
- Extract Color Codes: Scans any text file for hexadecimal color codes.
- Generate Image Palette: Creates an image file with a visual representation of the colors.
- Flexible Input: Accepts any file containing hex codes scattered within text.
To install Themer, you need Rust's cargo tool installed on your machine. Follow these steps:
git clone https://github.com/alphastrata/themer
cd themer
cargo build --release
To use Themer, provide the path to a text file as an argument:
themer "~/.vscode/extensions/alexandernanberg.horizon-theme-vscode-1.0.1/themes/horizon.json"
I needed something that could programmatically get the colours out from misc IDE and text-editors' themes to more readily craft my own.
then checkout the horizon.png
Themer is released under the MIT License. See the LICENSE file for more details.
