kolorz 0.2.0

A silly little library for printing colored text to the terminal
Documentation

❖ Information

kolorz is a silly little library for printing colored text to the terminal


❖ Installation

Add kolorz to your project's Cargo.toml:

[dependencies]
kolorz = "0.2.0"

❖ Basic Usage

// print colored text
use kolorz::get_colorscheme;

fn main() {
    let mocha = get_colorscheme("catppuccin mocha");
    println!("{}", mocha.red("This is red"));
}
// get an array of all available colorschemes
use kolorz::get_all_colorschemes;

fn main() {
    let colorschemes = get_all_colorschemes();
}

❖ The following colorschemes are available:

  • catppuccin latte
  • catppuccin frappe
  • catppuccin macchiato
  • catppuccin mocha
  • dracula
  • nord
  • gruvbox
  • onedark
  • tokyonight
  • ayu
  • palenight
  • gogh

❖ The following colors are available on all of the colorschemes:

  • red
  • purple
  • blue
  • orange
  • yellow
  • white

❖ What's New?

0.2.0 - Added a helper function to get an array of all colorschemes