The Colorize trait provides methods to apply colors and styles directly to strings.
Standard Colors:
black(), red(), green(), yellow(), blue(), magenta() (or purple()), cyan(), white().
Bright Colors:
Prepend bright_ to any color name (e.g., bright_blue()).
Background Colors:
Prepend on_ to any color name (e.g., on_blue()). For bright backgrounds, use on_bright_ (e.g., on_bright_red()).
Text Styles:
bold(), underline(), italic(), dimmed(), reversed(), blink(), hidden(), strikethrough().
Resetting Styles:
Use normal() or clear() to remove color and styling.
"this is blue".blue();
"this is red".red();
"this is red on blue".red().on_blue();
"bright colors are welcome as well".on_bright_blue().bright_red();
"you can also make bold text".bold();
"or clear things up. This is default color and style".red().bold().clear();