Crates.io | palette-cli |
lib.rs | palette-cli |
version | 0.3.0 |
source | src |
created_at | 2024-09-28 14:16:28.386269 |
updated_at | 2024-09-28 17:43:03.366251 |
description | A simple CLI tool to visualize color palettes. |
homepage | |
repository | https://github.com/OJarrisonn/palette |
max_upload_size | |
id | 1390150 |
size | 68,616 |
A simple CLI tool to visualize color palettes.
$ cargo install palette-cli
Notice: palette requires truecolor support
$ pal --help # Help page
$ pal colors.toml other.yaml foo.json # Show a side-by-side comparison of the palettes
palette
works by reading toml, json, yaml and nuon files that are a simple map associating a color name to a color hexcode. For instance:
black = "#3B4252"
red = "#BF616A"
green = "#A3BE8C"
yellow = "#EBCB8B"
blue = "#81A1C1"
purple = "#B48EAD"
cyan = "#88C0D0"
white = "#E5E9F0"
name = "Nord"
{
"black": "#3B4252",
"red": "#BF616A",
"green": "#A3BE8C",
"yellow": "#EBCB8B",
"blue": "#81A1C1",
"purple": "#B48EAD",
"cyan": "#88C0D0",
"white": "#E5E9F0",
"name": "Nord"
}
black: "#3B4252"
red: "#BF616A"
green: "#A3BE8C"
yellow: "#EBCB8B"
blue: "#81A1C1"
purple: "#B48EAD"
cyan: "#88C0D0"
white: "#E5E9F0"
name: "Nord"
{
black: "#3B4252",
red: "#BF616A",
green: "#A3BE8C",
yellow: "#EBCB8B",
blue: "#81A1C1",
purple: "#B48EAD",
cyan: "#88C0D0",
white: "#E5E9F0",
name: "Nord",
}
A special field name
may be provided to set the palette color. If any field besides name
is not a valid hexcolor palette
will display an error.
Any suggestion is taken in consideration. Open an issue describing your problem/suggestion. Also you might fork this repo, do your modifications and submit a Pull Request.
palette
uses Rust 1.81
stdin