Skip to content

alphastrata/themer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Extracts all hexadecimal color codes from a given input and generates a visual palette image (palette.png), displaying each color with its corresponding hex code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages