2 unstable releases

0.2.0 Jul 16, 2023
0.1.0 Jul 16, 2023

#1048 in Text processing

45 downloads per month
Used in 2 crates

MIT license

20KB
520 lines

macro-colors

Super simple rust color macros! Custom Macros for Colored Printing

These macros are custom printing macros designed to make terminal output colorful and stylized. They are helpful for adding colors, bold, and italic styles to printed text.

Text Color Macros:

  • red_println!("Example text"): Prints text in red color.
  • green_println!("Example text"): Prints text in green color.
  • yellow_println!("Example text"): Prints text in yellow color.
  • blue_println!("Example text"): Prints text in blue color.
  • purple_println!("Example text"): Prints text in purple color.
  • cyan_println!("Example text"): Prints text in cyan color.
  • white_println!("Example text"): Prints text in white color.

Bold Text Color Macros:

  • bold_red_println!("Example text"): Prints text in bold red color.
  • bold_green_println!("Example text"): Prints text in bold green color.
  • bold_yellow_println!("Example text"): Prints text in bold yellow color.
  • bold_blue_println!("Example text"): Prints text in bold blue color.
  • bold_purple_println!("Example text"): Prints text in bold purple color.
  • bold_cyan_println!("Example text"): Prints text in bold cyan color.
  • bold_white_println!("Example text"): Prints text in bold white color.

Italic Text Color Macros:

  • italic_red_println!("Example text"): Prints text in italic red color.
  • italic_green_println!("Example text"): Prints text in italic green color.
  • italic_yellow_println!("Example text"): Prints text in italic yellow color.
  • italic_blue_println!("Example text"): Prints text in italic blue color.
  • italic_purple_println!("Example text"): Prints text in italic purple color.
  • italic_cyan_println!("Example text"): Prints text in italic cyan color.
  • italic_white_println!("Example text"): Prints text in italic white color.

Bold and Italic Text Color Macros:

  • bold_italic_red_println!("Example text"): Prints text in bold and italic red color.
  • bold_italic_green_println!("Example text"): Prints text in bold and italic green color.
  • bold_italic_yellow_println!("Example text"): Prints text in bold and italic yellow color.
  • bold_italic_blue_println!("Example text"): Prints text in bold and italic blue color.
  • bold_italic_purple_println!("Example text"): Prints text in bold and italic purple color.
  • bold_italic_cyan_println!("Example text"): Prints text in bold and italic cyan color.
  • bold_italic_white_println!("Example text"): Prints text in bold and italic white color.

Background Color Macros:

  • bg_red_println!("Example text"): Prints text with a red background.
  • bg_green_println!("Example text"): Prints text with a green background.
  • bg_yellow_println!("Example text"): Prints text with a yellow background.
  • bg_blue_println!("Example text"): Prints text with a blue background.
  • bg_purple_println!("Example text"): Prints text with a purple background.
  • bg_cyan_println!("Example text"): Prints text with a cyan background.
  • bg_white_println!("Example text"): Prints text with a white background.

Bold Background Color Macros:

  • bold_bg_red_println!("Example text"): Prints text with a bold red background.
  • bold_bg_green_println!("Example text"): Prints text with a bold green background.
  • bold_bg_yellow_println!("Example text"): Prints text with a bold yellow background.
  • bold_bg_blue_println!("Example text"): Prints text with a bold blue background.
  • bold_bg_purple_println!("Example text"): Prints text with a bold purple background.
  • bold_bg_cyan_println!("Example text"): Prints text with a bold cyan background.
  • bold_bg_white_println!("Example text"): Prints text with a bold white background.

No runtime deps