coloured-strings
Rust crate that allows coloured strings to be printed to the terminal with the smallest file size neccessary.
colour;
colour;
colour
color
How to Use
Run cargo add coloured-strings
Afterwards, write this in your file use coloured_strings
Example:
use *;
Current Colours
// normal colours
"black" | "b"
"red" | "r"
"green" | "g"
"yellow" | "y"
"blue" | "bl"
"magenta" | "m"
"cyan" | "c"
"white"| "w"
// bright colours
"brightblack" | "bb"
"brightred" | "br"
"brightgreen" | "bg"
"brightyellow" | "by"
"brightblue" | "bbl"
"brightmagenta" | "bm"
"brightcyan" | "bc"
"brightwhite" | "bw"
//background colours
"backgroundred" | "b-r"
"backgroundgreen" | "b-g"
"backgroundyellow" | "b-y"
"backgroundblue" | "b-b"
"backgroundmagenta" | "b-m"
"backgroundcyan" | "b-c"
"bacgroundwhite" | "b-w"
//bright background colours
"backgroundbrightblack" | "b-bb"
"backgroundbrightred" | "b-br"
"backgroundbrightgreen" | "b-bg"
"backgroundbrightyellow" | "b-by"
"backgroundbrightblue" | "b-bbl"
"backgroundbrightmagenta" | "b-bm"
"backgroundbrightcyan" | "b-bc"
"backgroundbrightwhite" | "b-bw"
// other styles
"clear" | "cl"
"dimmed" | "d"
"italic" | "i"
"underline" | "u"
"blink" | "bli"
"reversed" | "re"
"hidden" | "h"
"strikethrough" | "s"