pastel-textcolor(1)

πŸ’… NAME πŸ’…

pastel-textcolor β€” bestie, this gives you a readable text color for whatever background color you hand it. That's the whole job. She's simple, she's iconic, she's slaying. ✨


πŸŽ€ SYNOPSIS πŸŽ€

pastel textcolor [-h|--help] [color]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the vibe: you give her a background color, she gives you back a readable foreground text color β€” and by "readable" we mean she's only ever choosing between black or white. That's it. Two options. She said pick a lane. πŸ‘‘

And the way that this is also reversible?? Not me being obsessed with the plot twist 🫢 β€” you can flip it and use it the opposite way, like to create a background color for a given text color. Same tool, backwards energy, still ate.


✨ OPTIONS ✨

  • -h, --help β€” prints the help. And lowkey, if you want the short lil summary version, hit -h instead of the full --help. iykyk πŸ’–
  • [color] β€” the color. And bestie, colors can be specified in so many different formats, it's giving versatility:
    • #RRGGBB
    • RRGGBB
    • #RGB
    • 'rgb(…, …, …)'
    • 'hsl(…, …, …)'
    • 'gray(…)'
    • or literally just the name of the color. no cap, just say the name. 🌸

Two special identifiers, and you need to know these:

  • - β€” reads a single color from standard input
  • pick β€” runs an external color picker so you can go choose your color with your lil mouse. main character behavior fr fr 🎨

And if you don't pass a color argument at all? Then colors will be read from standard input. She'll wait for you. Patient queen. πŸ’œ

Examples, all of these specify the exact same color, which is kinda wild when you think about it:

  • lightslategray
  • '#778899'
  • 778899
  • 789
  • 'rgb(119, 136, 153)'
  • '119,136,153'
  • 'hsl(210, 14.3%, 53.3%)'

And alpha transparency is also supported, because she's thorough like that:

  • '#77889980'
  • 'rgba(119, 136, 153, 0.5)'
  • 'hsla(210, 14.3%, 53.3%, 50%)'
Heads up bestie: the - identifier grabs a single color from standard input, and pick is gonna launch an external picker, so don't be surprised when a whole app pops up. πŸ™ˆ

And that's the whole page!! This was pastel-textcolor(1) from the General Commands Manual (section 1, the textcolor one, you know the one πŸ’…). Go forth and pick readable colors, bestie. periodt. βœ¨πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from
  • epel 10: pastel 0.12.0-1.el10_2 Β· (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)
  • 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-1.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)
  • 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)
  • nixpkgs unstable: pastel 0.12.0
  • ubuntu resolute: pastel 0.11.0-1 Β· MIT OR Apache-2.0
  • 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