| Crates.io | colorscheme-transformer |
| lib.rs | colorscheme-transformer |
| version | 0.1.2 |
| created_at | 2025-07-23 19:18:01.588327+00 |
| updated_at | 2025-09-03 19:17:12.658609+00 |
| description | A tool for manipulating colorschemes |
| homepage | |
| repository | https://github.com/WASDetchan/colorscheme-transformer/ |
| max_upload_size | |
| id | 1765164 |
| size | 173,277 |
cargo install colorscheme-transformer
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.
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.
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.
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.
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:
