pastel-format(1)
π pastel-format(1) π
okay bestie, welcome to pastel-format β it lives in the General Commands Manual section and it is literally the glow-up station for your colors β¨
β¨ NAME β¨
pastel-format β convert a color to the given format π
πΈ SYNOPSIS πΈ
pastel format [-h|--help] [type] [color]
π¦ DESCRIPTION π¦
so the whole vibe is: you hand it a color (or a whole lil pile of colors) and it converts them into whatever specific format you're feeling that day π
Example, bestie:
pastel random -n 20 | pastel format rgb
π OPTIONS π
-h,--helpβ print help (see a summary with-h) π«Ά[type][default:hex] β the output format type you want. heads up though: theansi-*-escapecodeformats print ansi escape sequences to the terminal, and those will not be visible unless something else gets printed in addition π no cap.
Possible values:
rgbrgb-floatrgb-rrgb-grgb-bhexhslhsl-huehsl-saturationhsl-lightnesshsvhsv-huehsv-saturationhsv-valuelchlch-lightnesslch-chromalch-hueoklchoklch-lightnessoklch-chromaoklch-huelablab-alab-boklaboklab-loklab-aoklab-bluminancebrightnessansi-8bitansi-24bitansi-8bit-valueansi-8bit-escapecodeansi-24bit-escapecodecmykname
[color]β the color itself π colors can be specified in sooooo many different formats, such as#RRGGBB,RRGGBB,#RGB,'rgb(β¦, β¦, β¦)','hsl(β¦, β¦, β¦)','gray(β¦)', or literally just by the name of the color.
The identifier - can be used to read a single color from standard input. Also, the special identifier pick can be used to run an external color picker to choose a color π§
If no color argument is specified, colors will be read from standard input.
Examples (all of these specify the same color, periodt):
lightslategray'#778899'778899789'rgb(119, 136, 153)''119,136,153''hsl(210, 14.3%, 53.3%)'
Alpha transparency is also supported π«Ά:
'#77889980''rgba(119, 136, 153, 0.5)''hsla(210, 14.3%, 53.3%, 50%)'
and that's the whole page, bestie!! the footer lowkey said format / pastel-format(1) and it's dated to whenever this manual page was built β so yeah, go convert some colors, you absolute icon π
β¨
π¦ where this page comes from
- epel 9: pastel 0.12.0-3.el9 Β· (MIT OR Apache-2.0) AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
- fedora 43: pastel 0.12.0-3.fc43 Β· (MIT OR Apache-2.0) AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
- fedora 44: pastel 0.12.0-3.fc44 Β· (MIT OR Apache-2.0) AND MIT AND Unicode-DFS-2016 AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (Unlicense OR MIT)
- ubuntu stonking: pastel 0.12.0-2 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms