themer

Crates.iothemer
lib.rsthemer
version0.1.0
created_at2025-06-11 06:51:53.290879+00
updated_at2025-06-11 06:51:53.290879+00
descriptionExtracts all hexadecimal color codes from a given input and generates a visual palette image (palette.png), displaying each color with its corresponding hex code.
homepagehttps://www.jeremyfwebb.ninja
repositoryhttps://www.github.com/alphastrata/themer
max_upload_size
id1708244
size269,815
Jer (alphastrata)

documentation

README

Banner

Themer:

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.

Features:

  • 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.

Installation

To install Themer, you need Rust's cargo tool installed on your machine. Follow these steps:

Clone the repository & build:


git clone https://github.com/alphastrata/themer
cd themer
cargo build --release

Usage:

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"

Why?

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

License

Themer is released under the MIT License. See the LICENSE file for more details.

Commit count: 0

cargo fmt