3 releases
Uses new Rust 2024
| 0.1.2 | Sep 3, 2025 |
|---|---|
| 0.1.1 | Jul 23, 2025 |
| 0.1.0 | Jul 23, 2025 |
#899 in Command line utilities
173 downloads per month
145KB
130 lines
Colorscheme transformer
- Fill templates with colorsets
- Make templates from colorschemes
- Transform colorschemes to different colorsets
How to use
Installation
cargo install colorscheme-transformer
Format
Colorset is YAML file in format:
NAME: RRGGBB
RRGGBB case is ignored.
Colorscheme is a program-specific ready-to-use file.
Template is a colorscheme where some colors RRGGBB changed to their name {NAME} to be filled with a colorset.
Make template
coroscheme-transformer make [colorscheme] [colorset]
Makes template from colorscheme and colorset. For each color RRGGBB with name NAME in colorset changes every RRGGBB occurence in colorscheme to {NAME} and prints to stdout. Ingores RRGGBB case.
Fill template
coroscheme-transformer fill [template] [colorset]
Substitutes {NAME}s in template to their corresponding colors from colorsets and prints to stdout. Case-sensitive, NAMEs not present in colorset are ignored.
Transform colorscheme
coroscheme-transformer transform [colorscheme] [colorset_from] [colorset_to]
Same as first making template with the first colorset and then filling it with the second colorset.
Example
In project's root directory:
touch example/kitty-gray.conf
cat example/kitty.conf | colorscheme-transformer transform example/catppuccin-frappe.yaml example/catppuccin-frappe-gray.yaml > example/kitty-gray.conf
Or (equivalent)
coroscheme-transformer transform example/catppuccin-frappe.yaml example/catppuccin-frappe-gray.yaml --input=example/kitty.conf -o example/kitty-gray.conf
example/kitty.conf - catppuccin-frappe colorscheme for kitty
example/catppuccin-frappe.yaml - catppuccin-frappe colorset
example/catppuccin-frappe-gray.yaml - colorset based on catppuccin-frappe with gray backgrounds
produces
example/kitty-gray.conf - catppuccin-frappe colorscheme for kitty with gray backgrounds
Normal/Gray:

Dependencies
~7–21MB
~278K SLoC