beautify

Trait Colors

Source
pub trait Colors {
Show 192 methods // Required methods fn text_default(&self) -> String; fn bg_default(&self) -> String; fn text_black(&self) -> String; fn bg_black(&self) -> String; fn text_red(&self) -> String; fn bg_red(&self) -> String; fn text_blue(&self) -> String; fn bg_blue(&self) -> String; fn text_green(&self) -> String; fn bg_green(&self) -> String; fn text_yellow(&self) -> String; fn bg_yellow(&self) -> String; fn text_magenta(&self) -> String; fn bg_magenta(&self) -> String; fn text_cyan(&self) -> String; fn bg_cyan(&self) -> String; fn text_white(&self) -> String; fn bg_white(&self) -> String; fn text_gray(&self) -> String; fn bg_gray(&self) -> String; fn text_red_bright(&self) -> String; fn bg_red_bright(&self) -> String; fn text_blue_bright(&self) -> String; fn bg_blue_bright(&self) -> String; fn text_green_bright(&self) -> String; fn bg_green_bright(&self) -> String; fn text_yellow_bright(&self) -> String; fn bg_yellow_bright(&self) -> String; fn text_magenta_bright(&self) -> String; fn bg_magenta_bright(&self) -> String; fn text_cyan_bright(&self) -> String; fn bg_cyan_bright(&self) -> String; fn text_white_bright(&self) -> String; fn bg_white_bright(&self) -> String; fn text_red_50(&self) -> String; fn bg_red_50(&self) -> String; fn text_red_100(&self) -> String; fn bg_red_100(&self) -> String; fn text_red_200(&self) -> String; fn bg_red_200(&self) -> String; fn text_red_300(&self) -> String; fn bg_red_300(&self) -> String; fn text_red_400(&self) -> String; fn bg_red_400(&self) -> String; fn text_red_500(&self) -> String; fn bg_red_500(&self) -> String; fn text_red_600(&self) -> String; fn bg_red_600(&self) -> String; fn text_red_700(&self) -> String; fn bg_red_700(&self) -> String; fn text_red_800(&self) -> String; fn bg_red_800(&self) -> String; fn text_red_900(&self) -> String; fn bg_red_900(&self) -> String; fn text_red_950(&self) -> String; fn bg_red_950(&self) -> String; fn text_yellow_50(&self) -> String; fn bg_yellow_50(&self) -> String; fn text_yellow_100(&self) -> String; fn bg_yellow_100(&self) -> String; fn text_yellow_200(&self) -> String; fn bg_yellow_200(&self) -> String; fn text_yellow_300(&self) -> String; fn bg_yellow_300(&self) -> String; fn text_yellow_400(&self) -> String; fn bg_yellow_400(&self) -> String; fn text_yellow_500(&self) -> String; fn bg_yellow_500(&self) -> String; fn text_yellow_600(&self) -> String; fn bg_yellow_600(&self) -> String; fn text_yellow_700(&self) -> String; fn bg_yellow_700(&self) -> String; fn text_yellow_800(&self) -> String; fn bg_yellow_800(&self) -> String; fn text_yellow_900(&self) -> String; fn bg_yellow_900(&self) -> String; fn text_yellow_950(&self) -> String; fn bg_yellow_950(&self) -> String; fn text_green_50(&self) -> String; fn bg_green_50(&self) -> String; fn text_green_100(&self) -> String; fn bg_green_100(&self) -> String; fn text_green_200(&self) -> String; fn bg_green_200(&self) -> String; fn text_green_300(&self) -> String; fn bg_green_300(&self) -> String; fn text_green_400(&self) -> String; fn bg_green_400(&self) -> String; fn text_green_500(&self) -> String; fn bg_green_500(&self) -> String; fn text_green_600(&self) -> String; fn bg_green_600(&self) -> String; fn text_green_700(&self) -> String; fn bg_green_700(&self) -> String; fn text_green_800(&self) -> String; fn bg_green_800(&self) -> String; fn text_green_900(&self) -> String; fn bg_green_900(&self) -> String; fn text_green_950(&self) -> String; fn bg_green_950(&self) -> String; fn text_blue_50(&self) -> String; fn bg_blue_50(&self) -> String; fn text_blue_100(&self) -> String; fn bg_blue_100(&self) -> String; fn text_blue_200(&self) -> String; fn bg_blue_200(&self) -> String; fn text_blue_300(&self) -> String; fn bg_blue_300(&self) -> String; fn text_blue_400(&self) -> String; fn bg_blue_400(&self) -> String; fn text_blue_500(&self) -> String; fn bg_blue_500(&self) -> String; fn text_blue_600(&self) -> String; fn bg_blue_600(&self) -> String; fn text_blue_700(&self) -> String; fn bg_blue_700(&self) -> String; fn text_blue_800(&self) -> String; fn bg_blue_800(&self) -> String; fn text_blue_900(&self) -> String; fn bg_blue_900(&self) -> String; fn text_blue_950(&self) -> String; fn bg_blue_950(&self) -> String; fn text_purple_50(&self) -> String; fn bg_purple_50(&self) -> String; fn text_purple_100(&self) -> String; fn bg_purple_100(&self) -> String; fn text_purple_200(&self) -> String; fn bg_purple_200(&self) -> String; fn text_purple_300(&self) -> String; fn bg_purple_300(&self) -> String; fn text_purple_400(&self) -> String; fn bg_purple_400(&self) -> String; fn text_purple_500(&self) -> String; fn bg_purple_500(&self) -> String; fn text_purple_600(&self) -> String; fn bg_purple_600(&self) -> String; fn text_purple_700(&self) -> String; fn bg_purple_700(&self) -> String; fn text_purple_800(&self) -> String; fn bg_purple_800(&self) -> String; fn text_purple_900(&self) -> String; fn bg_purple_900(&self) -> String; fn text_purple_950(&self) -> String; fn bg_purple_950(&self) -> String; fn text_pink_50(&self) -> String; fn bg_pink_50(&self) -> String; fn text_pink_100(&self) -> String; fn bg_pink_100(&self) -> String; fn text_pink_200(&self) -> String; fn bg_pink_200(&self) -> String; fn text_pink_300(&self) -> String; fn bg_pink_300(&self) -> String; fn text_pink_400(&self) -> String; fn bg_pink_400(&self) -> String; fn text_pink_500(&self) -> String; fn bg_pink_500(&self) -> String; fn text_pink_600(&self) -> String; fn bg_pink_600(&self) -> String; fn text_pink_700(&self) -> String; fn bg_pink_700(&self) -> String; fn text_pink_800(&self) -> String; fn bg_pink_800(&self) -> String; fn text_pink_900(&self) -> String; fn bg_pink_900(&self) -> String; fn text_pink_950(&self) -> String; fn bg_pink_950(&self) -> String; fn text_black_50(&self) -> String; fn bg_black_50(&self) -> String; fn text_black_100(&self) -> String; fn bg_black_100(&self) -> String; fn text_black_200(&self) -> String; fn bg_black_200(&self) -> String; fn text_black_300(&self) -> String; fn bg_black_300(&self) -> String; fn text_black_400(&self) -> String; fn bg_black_400(&self) -> String; fn text_black_500(&self) -> String; fn bg_black_500(&self) -> String; fn text_black_600(&self) -> String; fn bg_black_600(&self) -> String; fn text_black_700(&self) -> String; fn bg_black_700(&self) -> String; fn text_black_800(&self) -> String; fn bg_black_800(&self) -> String; fn text_black_900(&self) -> String; fn bg_black_900(&self) -> String; fn text_black_950(&self) -> String; fn bg_black_950(&self) -> String; fn text_gradient(&self, steps: &[&'static str]) -> String; fn bg_gradient(&self, steps: &[&'static str]) -> String; fn code(&self, code: usize) -> String; fn codes(&self, initial: usize, codes: (usize, usize, usize)) -> String;
}
Expand description

implements methods for beautifying your code

Required Methods§

Source

fn text_default(&self) -> String

sets text color to default terminal color

Source

fn bg_default(&self) -> String

sets background to default terminal color

Source

fn text_black(&self) -> String

sets text color to black (#000000)

Source

fn bg_black(&self) -> String

sets background color to black (#000000)

Source

fn text_red(&self) -> String

sets text color to red (#ff0000)

Source

fn bg_red(&self) -> String

sets background color to red (#ff0000)

Source

fn text_blue(&self) -> String

sets text color to blue (#0000ff)

Source

fn bg_blue(&self) -> String

sets background color to blue (#0000ff)

Source

fn text_green(&self) -> String

sets text color to green (#00ff00)

Source

fn bg_green(&self) -> String

sets background color to green (#00ff00)

Source

fn text_yellow(&self) -> String

sets text color to yellow (#ffff00)

Source

fn bg_yellow(&self) -> String

sets background color to yellow (#ffff00)

Source

fn text_magenta(&self) -> String

sets text color to magenta (#ff00ff)

Source

fn bg_magenta(&self) -> String

sets background color to magenta (#ff00ff)

Source

fn text_cyan(&self) -> String

sets text color to cyan (#00ffff)

Source

fn bg_cyan(&self) -> String

sets background color to cyan (#00ffff)

Source

fn text_white(&self) -> String

sets text color to white (#ffffff)

Source

fn bg_white(&self) -> String

sets background color to white (#ffffff)

Source

fn text_gray(&self) -> String

sets text color to gray (#808080)

Source

fn bg_gray(&self) -> String

sets background color to gray (#808080)

Source

fn text_red_bright(&self) -> String

sets text color to bright red (#ff5555)

Source

fn bg_red_bright(&self) -> String

sets background color to bright red (#ff5555)

Source

fn text_blue_bright(&self) -> String

sets text color to bright blue (#5555ff)

Source

fn bg_blue_bright(&self) -> String

sets background color to bright blue (#5555ff)

Source

fn text_green_bright(&self) -> String

sets text color to bright green (#55ff55)

Source

fn bg_green_bright(&self) -> String

sets background color to bright green (#55ff55)

Source

fn text_yellow_bright(&self) -> String

sets text color to bright yellow (#ffff55)

Source

fn bg_yellow_bright(&self) -> String

sets background color to bright yellow (#ffff55)

Source

fn text_magenta_bright(&self) -> String

sets text color to bright magenta (#ff55ff)

Source

fn bg_magenta_bright(&self) -> String

sets background color to bright magenta (#ff55ff)

Source

fn text_cyan_bright(&self) -> String

sets text color to bright cyan (#55ffff)

Source

fn bg_cyan_bright(&self) -> String

sets background color to bright cyan (#55ffff)

Source

fn text_white_bright(&self) -> String

sets text color to bright white (#ffffff)

Source

fn bg_white_bright(&self) -> String

sets background color to bright white (#ffffff)

Source

fn text_red_50(&self) -> String

sets text color to red-50 (#fef2f2)

Source

fn bg_red_50(&self) -> String

sets background color to red-50 (#fef2f2)

Source

fn text_red_100(&self) -> String

sets text color to red-100 (#fee2e2)

Source

fn bg_red_100(&self) -> String

sets background color to red-100 (#fee2e2)

Source

fn text_red_200(&self) -> String

sets text color to red-200 (#fecaca)

Source

fn bg_red_200(&self) -> String

sets background color to red-200 (#fecaca)

Source

fn text_red_300(&self) -> String

sets text color to red-300 (#fca5a5)

Source

fn bg_red_300(&self) -> String

sets background color to red-300 (#fca5a5)

Source

fn text_red_400(&self) -> String

sets text color to red-400 (#f87171)

Source

fn bg_red_400(&self) -> String

sets background color to red-400 (#f87171)

Source

fn text_red_500(&self) -> String

sets text color to red-500 (#ef4444)

Source

fn bg_red_500(&self) -> String

sets background color to red-500 (#ef4444)

Source

fn text_red_600(&self) -> String

sets text color to red-600 (#dc2626)

Source

fn bg_red_600(&self) -> String

sets background color to red-600 (#dc2626)

Source

fn text_red_700(&self) -> String

sets text color to red-700 (#b91c1c)

Source

fn bg_red_700(&self) -> String

sets background color to red-700 (#b91c1c)

Source

fn text_red_800(&self) -> String

sets text color to red-800 (#991b1b)

Source

fn bg_red_800(&self) -> String

sets background color to red-800 (#991b1b)

Source

fn text_red_900(&self) -> String

sets text color to red-900 (#7f1d1d)

Source

fn bg_red_900(&self) -> String

sets background color to red-900 (#7f1d1d)

Source

fn text_red_950(&self) -> String

sets text color to red-950 (#450a0a)

Source

fn bg_red_950(&self) -> String

sets background color to red-950 (#450a0a)

Source

fn text_yellow_50(&self) -> String

sets text color to yellow-50 (#fefce8)

Source

fn bg_yellow_50(&self) -> String

sets background color to yellow-50 (#fefce8)

Source

fn text_yellow_100(&self) -> String

sets text color to yellow-100 (#fef9c3)

Source

fn bg_yellow_100(&self) -> String

sets background color to yellow-100 (#fef9c3)

Source

fn text_yellow_200(&self) -> String

sets text color to yellow-200 (#fef08a)

Source

fn bg_yellow_200(&self) -> String

sets background color to yellow-200 (#fef08a)

Source

fn text_yellow_300(&self) -> String

sets text color to yellow-300 (#fde047)

Source

fn bg_yellow_300(&self) -> String

sets background color to yellow-300 (#fde047)

Source

fn text_yellow_400(&self) -> String

sets text color to yellow-400 (#facc15)

Source

fn bg_yellow_400(&self) -> String

sets background color to yellow-400 (#facc15)

Source

fn text_yellow_500(&self) -> String

sets text color to yellow-500 (#eab308)

Source

fn bg_yellow_500(&self) -> String

sets background color to yellow-500 (#eab308)

Source

fn text_yellow_600(&self) -> String

sets text color to yellow-600 (#ca8a04)

Source

fn bg_yellow_600(&self) -> String

sets background color to yellow-600 (#ca8a04)

Source

fn text_yellow_700(&self) -> String

sets text color to yellow-700 (#a16207)

Source

fn bg_yellow_700(&self) -> String

sets background color to yellow-700 (#a16207)

Source

fn text_yellow_800(&self) -> String

sets text color to yellow-800 (#854d0e)

Source

fn bg_yellow_800(&self) -> String

sets background color to yellow-800 (#854d0e)

Source

fn text_yellow_900(&self) -> String

sets text color to yellow-900 (#713f12)

Source

fn bg_yellow_900(&self) -> String

sets background color to yellow-900 (#713f12)

Source

fn text_yellow_950(&self) -> String

sets text color to yellow-950 (#422006)

Source

fn bg_yellow_950(&self) -> String

sets background color to yellow-950 (#422006)

Source

fn text_green_50(&self) -> String

sets text color to green-50 (#f0fdf4)

Source

fn bg_green_50(&self) -> String

sets background color to green-50 (#f0fdf4)

Source

fn text_green_100(&self) -> String

sets text color to green-100 (#dcfce7)

Source

fn bg_green_100(&self) -> String

sets background color to green-100 (#dcfce7)

Source

fn text_green_200(&self) -> String

sets text color to green-200 (#bbf7d0)

Source

fn bg_green_200(&self) -> String

sets background color to green-200 (#bbf7d0)

Source

fn text_green_300(&self) -> String

sets text color to green-300 (#86efac)

Source

fn bg_green_300(&self) -> String

sets background color to green-300 (#86efac)

Source

fn text_green_400(&self) -> String

sets text color to green-400 (#4ade80)

Source

fn bg_green_400(&self) -> String

sets background color to green-400 (#4ade80)

Source

fn text_green_500(&self) -> String

sets text color to green-500 (#22c55e)

Source

fn bg_green_500(&self) -> String

sets background color to green-500 (#22c55e)

Source

fn text_green_600(&self) -> String

sets text color to green-600 (#16a34a)

Source

fn bg_green_600(&self) -> String

sets background color to green-600 (#16a34a)

Source

fn text_green_700(&self) -> String

sets text color to green-700 (#15803d)

Source

fn bg_green_700(&self) -> String

sets background color to green-700 (#15803d)

Source

fn text_green_800(&self) -> String

sets text color to green-800 (#166534)

Source

fn bg_green_800(&self) -> String

sets background color to green-800 (#166534)

Source

fn text_green_900(&self) -> String

sets text color to green-900 (#14532d)

Source

fn bg_green_900(&self) -> String

sets background color to green-900 (#14532d)

Source

fn text_green_950(&self) -> String

sets text color to green-950 (#052e16)

Source

fn bg_green_950(&self) -> String

sets background color to green-950 (#052e16)

Source

fn text_blue_50(&self) -> String

sets text color to blue-50 (#eff6ff)

Source

fn bg_blue_50(&self) -> String

sets background color to blue-50 (#eff6ff)

Source

fn text_blue_100(&self) -> String

sets text color to blue-100 (#dbeafe)

Source

fn bg_blue_100(&self) -> String

sets background color to blue-100 (#dbeafe)

Source

fn text_blue_200(&self) -> String

sets text color to blue-200 (#bfdbfe)

Source

fn bg_blue_200(&self) -> String

sets background color to blue-200 (#bfdbfe)

Source

fn text_blue_300(&self) -> String

sets text color to blue-300 (#93c5fd)

Source

fn bg_blue_300(&self) -> String

sets background color to blue-300 (#93c5fd)

Source

fn text_blue_400(&self) -> String

sets text color to blue-400 (#60a5fa)

Source

fn bg_blue_400(&self) -> String

sets background color to blue-400 (#60a5fa)

Source

fn text_blue_500(&self) -> String

sets text color to blue-500 (#3b82f6)

Source

fn bg_blue_500(&self) -> String

sets background color to blue-500 (#3b82f6)

Source

fn text_blue_600(&self) -> String

sets text color to blue-600 (#2563eb)

Source

fn bg_blue_600(&self) -> String

sets background color to blue-600 (#2563eb)

Source

fn text_blue_700(&self) -> String

sets text color to blue-700 (#1d4ed8)

Source

fn bg_blue_700(&self) -> String

sets background color to blue-700 (#1d4ed8)

Source

fn text_blue_800(&self) -> String

sets text color to blue-800 (#1e40af)

Source

fn bg_blue_800(&self) -> String

sets background color to blue-800 (#1e40af)

Source

fn text_blue_900(&self) -> String

sets text color to blue-900 (#1e3a8a)

Source

fn bg_blue_900(&self) -> String

sets background color to blue-900 (#1e3a8a)

Source

fn text_blue_950(&self) -> String

sets text color to blue-950 (#172554)

Source

fn bg_blue_950(&self) -> String

sets background color to blue-950 (#172554)

Source

fn text_purple_50(&self) -> String

sets text color to purple-50 (#faf5ff)

Source

fn bg_purple_50(&self) -> String

sets background color to purple-50 (#faf5ff)

Source

fn text_purple_100(&self) -> String

sets text color to purple-100 (#f3e8ff)

Source

fn bg_purple_100(&self) -> String

sets background color to purple-100 (#f3e8ff)

Source

fn text_purple_200(&self) -> String

sets text color to purple-200 (#e9d5ff)

Source

fn bg_purple_200(&self) -> String

sets background color to purple-200 (#e9d5ff)

Source

fn text_purple_300(&self) -> String

sets text color to purple-300 (#d8b4fe)

Source

fn bg_purple_300(&self) -> String

sets background color to purple-300 (#d8b4fe)

Source

fn text_purple_400(&self) -> String

sets text color to purple-400 (#c084fc)

Source

fn bg_purple_400(&self) -> String

sets background color to purple-400 (#c084fc)

Source

fn text_purple_500(&self) -> String

sets text color to purple-500 (#a855f7)

Source

fn bg_purple_500(&self) -> String

sets background color to purple-500 (#a855f7)

Source

fn text_purple_600(&self) -> String

sets text color to purple-600 (#9333ea)

Source

fn bg_purple_600(&self) -> String

sets background color to purple-600 (#9333ea)

Source

fn text_purple_700(&self) -> String

sets text color to purple-700 (#7e22ce)

Source

fn bg_purple_700(&self) -> String

sets background color to purple-700 (#7e22ce)

Source

fn text_purple_800(&self) -> String

sets text color to purple-800 (#6b21a8)

Source

fn bg_purple_800(&self) -> String

sets background color to purple-800 (#6b21a8)

Source

fn text_purple_900(&self) -> String

sets text color to purple-900 (#581c87)

Source

fn bg_purple_900(&self) -> String

sets background color to purple-900 (#581c87)

Source

fn text_purple_950(&self) -> String

sets text color to purple-950 (#3b0764)

Source

fn bg_purple_950(&self) -> String

sets background color to purple-950 (#3b0764)

Source

fn text_pink_50(&self) -> String

sets text color to pink-50 (#fdf2f8)

Source

fn bg_pink_50(&self) -> String

sets background color to pink-50 (#fdf2f8)

Source

fn text_pink_100(&self) -> String

sets text color to pink-100 (#fce7f3)

Source

fn bg_pink_100(&self) -> String

sets background color to pink-100 (#fce7f3)

Source

fn text_pink_200(&self) -> String

sets text color to pink-200 (#fbcfe8)

Source

fn bg_pink_200(&self) -> String

sets background color to pink-200 (#fbcfe8)

Source

fn text_pink_300(&self) -> String

sets text color to pink-300 (#f9a8d4)

Source

fn bg_pink_300(&self) -> String

sets background color to pink-300 (#f9a8d4)

Source

fn text_pink_400(&self) -> String

sets text color to pink-400 (#f472b6)

Source

fn bg_pink_400(&self) -> String

sets background color to pink-400 (#f472b6)

Source

fn text_pink_500(&self) -> String

sets text color to pink-500 (#ec4899)

Source

fn bg_pink_500(&self) -> String

sets background color to pink-500 (#ec4899)

Source

fn text_pink_600(&self) -> String

sets text color to pink-600 (#db2777)

Source

fn bg_pink_600(&self) -> String

sets background color to pink-600 (#db2777)

Source

fn text_pink_700(&self) -> String

sets text color to pink-700 (#be185d)

Source

fn bg_pink_700(&self) -> String

sets background color to pink-700 (#be185d)

Source

fn text_pink_800(&self) -> String

sets text color to pink-800 (#9d174d)

Source

fn bg_pink_800(&self) -> String

sets background color to pink-800 (#9d174d)

Source

fn text_pink_900(&self) -> String

sets text color to pink-900 (#831843)

Source

fn bg_pink_900(&self) -> String

sets background color to pink-900 (#831843)

Source

fn text_pink_950(&self) -> String

sets text color to pink-950 (#500724)

Source

fn bg_pink_950(&self) -> String

sets background color to pink-950 (#500724)

Source

fn text_black_50(&self) -> String

sets text color to black-50 (#f9fafb)

Source

fn bg_black_50(&self) -> String

sets background color to black-50 (#f9fafb)

Source

fn text_black_100(&self) -> String

sets text color to black-100 (#f3f4f6)

Source

fn bg_black_100(&self) -> String

sets background color to black-100 (#f3f4f6)

Source

fn text_black_200(&self) -> String

sets text color to black-200 (#e5e7eb)

Source

fn bg_black_200(&self) -> String

sets background color to black-200 (#e5e7eb)

Source

fn text_black_300(&self) -> String

sets text color to black-300 (#d1d5db)

Source

fn bg_black_300(&self) -> String

sets background color to black-300 (#d1d5db)

Source

fn text_black_400(&self) -> String

sets text color to black-400 (#9ca3af)

Source

fn bg_black_400(&self) -> String

sets background color to black-400 (#9ca3af)

Source

fn text_black_500(&self) -> String

sets text color to black-500 (#6b7280)

Source

fn bg_black_500(&self) -> String

sets background color to black-500 (#6b7280)

Source

fn text_black_600(&self) -> String

sets text color to black-600 (#4b5563)

Source

fn bg_black_600(&self) -> String

sets background color to black-600 (#4b5563)

Source

fn text_black_700(&self) -> String

sets text color to black-700 (#374151)

Source

fn bg_black_700(&self) -> String

sets background color to black-700 (#374151)

Source

fn text_black_800(&self) -> String

sets text color to black-800 (#1f2937)

Source

fn bg_black_800(&self) -> String

sets background color to black-800 (#1f2937)

Source

fn text_black_900(&self) -> String

sets text color to black-900 (#111827)

Source

fn bg_black_900(&self) -> String

sets background color to black-900 (#111827)

Source

fn text_black_950(&self) -> String

sets text color to black-950 (#030712)

Source

fn bg_black_950(&self) -> String

sets background color to black-950 (#030712)

Source

fn text_gradient(&self, steps: &[&'static str]) -> String

give the text gradient color by describing gradient steps argument can be hexagonal, rgb, default or an accent color

it’s better to use with longer texts for better results

example:

println!("{}", "hi!".text_gradient(["#f40420", "text_blue_500"]))
Source

fn bg_gradient(&self, steps: &[&'static str]) -> String

give the background gradient color by describing gradient steps argument can be hexagonal, rgb, default or an accent color

it’s better to use with longer texts for better results

example:

println!("{}", "hi!".bg_gradient(["#f40420", "text_blue_500"]))
Source

fn code(&self, code: usize) -> String

makes text bold applies custom style to text

Source

fn codes(&self, initial: usize, codes: (usize, usize, usize)) -> String

Implementors§

Source§

impl<T> Colors for T
where T: Display,