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§
Sourcefn text_default(&self) -> String
fn text_default(&self) -> String
sets text color to default terminal color
Sourcefn bg_default(&self) -> String
fn bg_default(&self) -> String
sets background to default terminal color
Sourcefn text_black(&self) -> String
fn text_black(&self) -> String
sets text color to black (#000000)
Sourcefn text_green(&self) -> String
fn text_green(&self) -> String
sets text color to green (#00ff00)
Sourcefn text_yellow(&self) -> String
fn text_yellow(&self) -> String
sets text color to yellow (#ffff00)
Sourcefn text_magenta(&self) -> String
fn text_magenta(&self) -> String
sets text color to magenta (#ff00ff)
Sourcefn bg_magenta(&self) -> String
fn bg_magenta(&self) -> String
sets background color to magenta (#ff00ff)
Sourcefn text_white(&self) -> String
fn text_white(&self) -> String
sets text color to white (#ffffff)
Sourcefn text_red_bright(&self) -> String
fn text_red_bright(&self) -> String
sets text color to bright red (#ff5555)
Sourcefn bg_red_bright(&self) -> String
fn bg_red_bright(&self) -> String
sets background color to bright red (#ff5555)
Sourcefn text_blue_bright(&self) -> String
fn text_blue_bright(&self) -> String
sets text color to bright blue (#5555ff)
Sourcefn bg_blue_bright(&self) -> String
fn bg_blue_bright(&self) -> String
sets background color to bright blue (#5555ff)
Sourcefn text_green_bright(&self) -> String
fn text_green_bright(&self) -> String
sets text color to bright green (#55ff55)
Sourcefn bg_green_bright(&self) -> String
fn bg_green_bright(&self) -> String
sets background color to bright green (#55ff55)
Sourcefn text_yellow_bright(&self) -> String
fn text_yellow_bright(&self) -> String
sets text color to bright yellow (#ffff55)
Sourcefn bg_yellow_bright(&self) -> String
fn bg_yellow_bright(&self) -> String
sets background color to bright yellow (#ffff55)
Sourcefn text_magenta_bright(&self) -> String
fn text_magenta_bright(&self) -> String
sets text color to bright magenta (#ff55ff)
Sourcefn bg_magenta_bright(&self) -> String
fn bg_magenta_bright(&self) -> String
sets background color to bright magenta (#ff55ff)
Sourcefn text_cyan_bright(&self) -> String
fn text_cyan_bright(&self) -> String
sets text color to bright cyan (#55ffff)
Sourcefn bg_cyan_bright(&self) -> String
fn bg_cyan_bright(&self) -> String
sets background color to bright cyan (#55ffff)
Sourcefn text_white_bright(&self) -> String
fn text_white_bright(&self) -> String
sets text color to bright white (#ffffff)
Sourcefn bg_white_bright(&self) -> String
fn bg_white_bright(&self) -> String
sets background color to bright white (#ffffff)
Sourcefn text_red_50(&self) -> String
fn text_red_50(&self) -> String
sets text color to red-50 (#fef2f2)
Sourcefn text_red_100(&self) -> String
fn text_red_100(&self) -> String
sets text color to red-100 (#fee2e2)
Sourcefn bg_red_100(&self) -> String
fn bg_red_100(&self) -> String
sets background color to red-100 (#fee2e2)
Sourcefn text_red_200(&self) -> String
fn text_red_200(&self) -> String
sets text color to red-200 (#fecaca)
Sourcefn bg_red_200(&self) -> String
fn bg_red_200(&self) -> String
sets background color to red-200 (#fecaca)
Sourcefn text_red_300(&self) -> String
fn text_red_300(&self) -> String
sets text color to red-300 (#fca5a5)
Sourcefn bg_red_300(&self) -> String
fn bg_red_300(&self) -> String
sets background color to red-300 (#fca5a5)
Sourcefn text_red_400(&self) -> String
fn text_red_400(&self) -> String
sets text color to red-400 (#f87171)
Sourcefn bg_red_400(&self) -> String
fn bg_red_400(&self) -> String
sets background color to red-400 (#f87171)
Sourcefn text_red_500(&self) -> String
fn text_red_500(&self) -> String
sets text color to red-500 (#ef4444)
Sourcefn bg_red_500(&self) -> String
fn bg_red_500(&self) -> String
sets background color to red-500 (#ef4444)
Sourcefn text_red_600(&self) -> String
fn text_red_600(&self) -> String
sets text color to red-600 (#dc2626)
Sourcefn bg_red_600(&self) -> String
fn bg_red_600(&self) -> String
sets background color to red-600 (#dc2626)
Sourcefn text_red_700(&self) -> String
fn text_red_700(&self) -> String
sets text color to red-700 (#b91c1c)
Sourcefn bg_red_700(&self) -> String
fn bg_red_700(&self) -> String
sets background color to red-700 (#b91c1c)
Sourcefn text_red_800(&self) -> String
fn text_red_800(&self) -> String
sets text color to red-800 (#991b1b)
Sourcefn bg_red_800(&self) -> String
fn bg_red_800(&self) -> String
sets background color to red-800 (#991b1b)
Sourcefn text_red_900(&self) -> String
fn text_red_900(&self) -> String
sets text color to red-900 (#7f1d1d)
Sourcefn bg_red_900(&self) -> String
fn bg_red_900(&self) -> String
sets background color to red-900 (#7f1d1d)
Sourcefn text_red_950(&self) -> String
fn text_red_950(&self) -> String
sets text color to red-950 (#450a0a)
Sourcefn bg_red_950(&self) -> String
fn bg_red_950(&self) -> String
sets background color to red-950 (#450a0a)
Sourcefn text_yellow_50(&self) -> String
fn text_yellow_50(&self) -> String
sets text color to yellow-50 (#fefce8)
Sourcefn bg_yellow_50(&self) -> String
fn bg_yellow_50(&self) -> String
sets background color to yellow-50 (#fefce8)
Sourcefn text_yellow_100(&self) -> String
fn text_yellow_100(&self) -> String
sets text color to yellow-100 (#fef9c3)
Sourcefn bg_yellow_100(&self) -> String
fn bg_yellow_100(&self) -> String
sets background color to yellow-100 (#fef9c3)
Sourcefn text_yellow_200(&self) -> String
fn text_yellow_200(&self) -> String
sets text color to yellow-200 (#fef08a)
Sourcefn bg_yellow_200(&self) -> String
fn bg_yellow_200(&self) -> String
sets background color to yellow-200 (#fef08a)
Sourcefn text_yellow_300(&self) -> String
fn text_yellow_300(&self) -> String
sets text color to yellow-300 (#fde047)
Sourcefn bg_yellow_300(&self) -> String
fn bg_yellow_300(&self) -> String
sets background color to yellow-300 (#fde047)
Sourcefn text_yellow_400(&self) -> String
fn text_yellow_400(&self) -> String
sets text color to yellow-400 (#facc15)
Sourcefn bg_yellow_400(&self) -> String
fn bg_yellow_400(&self) -> String
sets background color to yellow-400 (#facc15)
Sourcefn text_yellow_500(&self) -> String
fn text_yellow_500(&self) -> String
sets text color to yellow-500 (#eab308)
Sourcefn bg_yellow_500(&self) -> String
fn bg_yellow_500(&self) -> String
sets background color to yellow-500 (#eab308)
Sourcefn text_yellow_600(&self) -> String
fn text_yellow_600(&self) -> String
sets text color to yellow-600 (#ca8a04)
Sourcefn bg_yellow_600(&self) -> String
fn bg_yellow_600(&self) -> String
sets background color to yellow-600 (#ca8a04)
Sourcefn text_yellow_700(&self) -> String
fn text_yellow_700(&self) -> String
sets text color to yellow-700 (#a16207)
Sourcefn bg_yellow_700(&self) -> String
fn bg_yellow_700(&self) -> String
sets background color to yellow-700 (#a16207)
Sourcefn text_yellow_800(&self) -> String
fn text_yellow_800(&self) -> String
sets text color to yellow-800 (#854d0e)
Sourcefn bg_yellow_800(&self) -> String
fn bg_yellow_800(&self) -> String
sets background color to yellow-800 (#854d0e)
Sourcefn text_yellow_900(&self) -> String
fn text_yellow_900(&self) -> String
sets text color to yellow-900 (#713f12)
Sourcefn bg_yellow_900(&self) -> String
fn bg_yellow_900(&self) -> String
sets background color to yellow-900 (#713f12)
Sourcefn text_yellow_950(&self) -> String
fn text_yellow_950(&self) -> String
sets text color to yellow-950 (#422006)
Sourcefn bg_yellow_950(&self) -> String
fn bg_yellow_950(&self) -> String
sets background color to yellow-950 (#422006)
Sourcefn text_green_50(&self) -> String
fn text_green_50(&self) -> String
sets text color to green-50 (#f0fdf4)
Sourcefn bg_green_50(&self) -> String
fn bg_green_50(&self) -> String
sets background color to green-50 (#f0fdf4)
Sourcefn text_green_100(&self) -> String
fn text_green_100(&self) -> String
sets text color to green-100 (#dcfce7)
Sourcefn bg_green_100(&self) -> String
fn bg_green_100(&self) -> String
sets background color to green-100 (#dcfce7)
Sourcefn text_green_200(&self) -> String
fn text_green_200(&self) -> String
sets text color to green-200 (#bbf7d0)
Sourcefn bg_green_200(&self) -> String
fn bg_green_200(&self) -> String
sets background color to green-200 (#bbf7d0)
Sourcefn text_green_300(&self) -> String
fn text_green_300(&self) -> String
sets text color to green-300 (#86efac)
Sourcefn bg_green_300(&self) -> String
fn bg_green_300(&self) -> String
sets background color to green-300 (#86efac)
Sourcefn text_green_400(&self) -> String
fn text_green_400(&self) -> String
sets text color to green-400 (#4ade80)
Sourcefn bg_green_400(&self) -> String
fn bg_green_400(&self) -> String
sets background color to green-400 (#4ade80)
Sourcefn text_green_500(&self) -> String
fn text_green_500(&self) -> String
sets text color to green-500 (#22c55e)
Sourcefn bg_green_500(&self) -> String
fn bg_green_500(&self) -> String
sets background color to green-500 (#22c55e)
Sourcefn text_green_600(&self) -> String
fn text_green_600(&self) -> String
sets text color to green-600 (#16a34a)
Sourcefn bg_green_600(&self) -> String
fn bg_green_600(&self) -> String
sets background color to green-600 (#16a34a)
Sourcefn text_green_700(&self) -> String
fn text_green_700(&self) -> String
sets text color to green-700 (#15803d)
Sourcefn bg_green_700(&self) -> String
fn bg_green_700(&self) -> String
sets background color to green-700 (#15803d)
Sourcefn text_green_800(&self) -> String
fn text_green_800(&self) -> String
sets text color to green-800 (#166534)
Sourcefn bg_green_800(&self) -> String
fn bg_green_800(&self) -> String
sets background color to green-800 (#166534)
Sourcefn text_green_900(&self) -> String
fn text_green_900(&self) -> String
sets text color to green-900 (#14532d)
Sourcefn bg_green_900(&self) -> String
fn bg_green_900(&self) -> String
sets background color to green-900 (#14532d)
Sourcefn text_green_950(&self) -> String
fn text_green_950(&self) -> String
sets text color to green-950 (#052e16)
Sourcefn bg_green_950(&self) -> String
fn bg_green_950(&self) -> String
sets background color to green-950 (#052e16)
Sourcefn text_blue_50(&self) -> String
fn text_blue_50(&self) -> String
sets text color to blue-50 (#eff6ff)
Sourcefn bg_blue_50(&self) -> String
fn bg_blue_50(&self) -> String
sets background color to blue-50 (#eff6ff)
Sourcefn text_blue_100(&self) -> String
fn text_blue_100(&self) -> String
sets text color to blue-100 (#dbeafe)
Sourcefn bg_blue_100(&self) -> String
fn bg_blue_100(&self) -> String
sets background color to blue-100 (#dbeafe)
Sourcefn text_blue_200(&self) -> String
fn text_blue_200(&self) -> String
sets text color to blue-200 (#bfdbfe)
Sourcefn bg_blue_200(&self) -> String
fn bg_blue_200(&self) -> String
sets background color to blue-200 (#bfdbfe)
Sourcefn text_blue_300(&self) -> String
fn text_blue_300(&self) -> String
sets text color to blue-300 (#93c5fd)
Sourcefn bg_blue_300(&self) -> String
fn bg_blue_300(&self) -> String
sets background color to blue-300 (#93c5fd)
Sourcefn text_blue_400(&self) -> String
fn text_blue_400(&self) -> String
sets text color to blue-400 (#60a5fa)
Sourcefn bg_blue_400(&self) -> String
fn bg_blue_400(&self) -> String
sets background color to blue-400 (#60a5fa)
Sourcefn text_blue_500(&self) -> String
fn text_blue_500(&self) -> String
sets text color to blue-500 (#3b82f6)
Sourcefn bg_blue_500(&self) -> String
fn bg_blue_500(&self) -> String
sets background color to blue-500 (#3b82f6)
Sourcefn text_blue_600(&self) -> String
fn text_blue_600(&self) -> String
sets text color to blue-600 (#2563eb)
Sourcefn bg_blue_600(&self) -> String
fn bg_blue_600(&self) -> String
sets background color to blue-600 (#2563eb)
Sourcefn text_blue_700(&self) -> String
fn text_blue_700(&self) -> String
sets text color to blue-700 (#1d4ed8)
Sourcefn bg_blue_700(&self) -> String
fn bg_blue_700(&self) -> String
sets background color to blue-700 (#1d4ed8)
Sourcefn text_blue_800(&self) -> String
fn text_blue_800(&self) -> String
sets text color to blue-800 (#1e40af)
Sourcefn bg_blue_800(&self) -> String
fn bg_blue_800(&self) -> String
sets background color to blue-800 (#1e40af)
Sourcefn text_blue_900(&self) -> String
fn text_blue_900(&self) -> String
sets text color to blue-900 (#1e3a8a)
Sourcefn bg_blue_900(&self) -> String
fn bg_blue_900(&self) -> String
sets background color to blue-900 (#1e3a8a)
Sourcefn text_blue_950(&self) -> String
fn text_blue_950(&self) -> String
sets text color to blue-950 (#172554)
Sourcefn bg_blue_950(&self) -> String
fn bg_blue_950(&self) -> String
sets background color to blue-950 (#172554)
Sourcefn text_purple_50(&self) -> String
fn text_purple_50(&self) -> String
sets text color to purple-50 (#faf5ff)
Sourcefn bg_purple_50(&self) -> String
fn bg_purple_50(&self) -> String
sets background color to purple-50 (#faf5ff)
Sourcefn text_purple_100(&self) -> String
fn text_purple_100(&self) -> String
sets text color to purple-100 (#f3e8ff)
Sourcefn bg_purple_100(&self) -> String
fn bg_purple_100(&self) -> String
sets background color to purple-100 (#f3e8ff)
Sourcefn text_purple_200(&self) -> String
fn text_purple_200(&self) -> String
sets text color to purple-200 (#e9d5ff)
Sourcefn bg_purple_200(&self) -> String
fn bg_purple_200(&self) -> String
sets background color to purple-200 (#e9d5ff)
Sourcefn text_purple_300(&self) -> String
fn text_purple_300(&self) -> String
sets text color to purple-300 (#d8b4fe)
Sourcefn bg_purple_300(&self) -> String
fn bg_purple_300(&self) -> String
sets background color to purple-300 (#d8b4fe)
Sourcefn text_purple_400(&self) -> String
fn text_purple_400(&self) -> String
sets text color to purple-400 (#c084fc)
Sourcefn bg_purple_400(&self) -> String
fn bg_purple_400(&self) -> String
sets background color to purple-400 (#c084fc)
Sourcefn text_purple_500(&self) -> String
fn text_purple_500(&self) -> String
sets text color to purple-500 (#a855f7)
Sourcefn bg_purple_500(&self) -> String
fn bg_purple_500(&self) -> String
sets background color to purple-500 (#a855f7)
Sourcefn text_purple_600(&self) -> String
fn text_purple_600(&self) -> String
sets text color to purple-600 (#9333ea)
Sourcefn bg_purple_600(&self) -> String
fn bg_purple_600(&self) -> String
sets background color to purple-600 (#9333ea)
Sourcefn text_purple_700(&self) -> String
fn text_purple_700(&self) -> String
sets text color to purple-700 (#7e22ce)
Sourcefn bg_purple_700(&self) -> String
fn bg_purple_700(&self) -> String
sets background color to purple-700 (#7e22ce)
Sourcefn text_purple_800(&self) -> String
fn text_purple_800(&self) -> String
sets text color to purple-800 (#6b21a8)
Sourcefn bg_purple_800(&self) -> String
fn bg_purple_800(&self) -> String
sets background color to purple-800 (#6b21a8)
Sourcefn text_purple_900(&self) -> String
fn text_purple_900(&self) -> String
sets text color to purple-900 (#581c87)
Sourcefn bg_purple_900(&self) -> String
fn bg_purple_900(&self) -> String
sets background color to purple-900 (#581c87)
Sourcefn text_purple_950(&self) -> String
fn text_purple_950(&self) -> String
sets text color to purple-950 (#3b0764)
Sourcefn bg_purple_950(&self) -> String
fn bg_purple_950(&self) -> String
sets background color to purple-950 (#3b0764)
Sourcefn text_pink_50(&self) -> String
fn text_pink_50(&self) -> String
sets text color to pink-50 (#fdf2f8)
Sourcefn bg_pink_50(&self) -> String
fn bg_pink_50(&self) -> String
sets background color to pink-50 (#fdf2f8)
Sourcefn text_pink_100(&self) -> String
fn text_pink_100(&self) -> String
sets text color to pink-100 (#fce7f3)
Sourcefn bg_pink_100(&self) -> String
fn bg_pink_100(&self) -> String
sets background color to pink-100 (#fce7f3)
Sourcefn text_pink_200(&self) -> String
fn text_pink_200(&self) -> String
sets text color to pink-200 (#fbcfe8)
Sourcefn bg_pink_200(&self) -> String
fn bg_pink_200(&self) -> String
sets background color to pink-200 (#fbcfe8)
Sourcefn text_pink_300(&self) -> String
fn text_pink_300(&self) -> String
sets text color to pink-300 (#f9a8d4)
Sourcefn bg_pink_300(&self) -> String
fn bg_pink_300(&self) -> String
sets background color to pink-300 (#f9a8d4)
Sourcefn text_pink_400(&self) -> String
fn text_pink_400(&self) -> String
sets text color to pink-400 (#f472b6)
Sourcefn bg_pink_400(&self) -> String
fn bg_pink_400(&self) -> String
sets background color to pink-400 (#f472b6)
Sourcefn text_pink_500(&self) -> String
fn text_pink_500(&self) -> String
sets text color to pink-500 (#ec4899)
Sourcefn bg_pink_500(&self) -> String
fn bg_pink_500(&self) -> String
sets background color to pink-500 (#ec4899)
Sourcefn text_pink_600(&self) -> String
fn text_pink_600(&self) -> String
sets text color to pink-600 (#db2777)
Sourcefn bg_pink_600(&self) -> String
fn bg_pink_600(&self) -> String
sets background color to pink-600 (#db2777)
Sourcefn text_pink_700(&self) -> String
fn text_pink_700(&self) -> String
sets text color to pink-700 (#be185d)
Sourcefn bg_pink_700(&self) -> String
fn bg_pink_700(&self) -> String
sets background color to pink-700 (#be185d)
Sourcefn text_pink_800(&self) -> String
fn text_pink_800(&self) -> String
sets text color to pink-800 (#9d174d)
Sourcefn bg_pink_800(&self) -> String
fn bg_pink_800(&self) -> String
sets background color to pink-800 (#9d174d)
Sourcefn text_pink_900(&self) -> String
fn text_pink_900(&self) -> String
sets text color to pink-900 (#831843)
Sourcefn bg_pink_900(&self) -> String
fn bg_pink_900(&self) -> String
sets background color to pink-900 (#831843)
Sourcefn text_pink_950(&self) -> String
fn text_pink_950(&self) -> String
sets text color to pink-950 (#500724)
Sourcefn bg_pink_950(&self) -> String
fn bg_pink_950(&self) -> String
sets background color to pink-950 (#500724)
Sourcefn text_black_50(&self) -> String
fn text_black_50(&self) -> String
sets text color to black-50 (#f9fafb)
Sourcefn bg_black_50(&self) -> String
fn bg_black_50(&self) -> String
sets background color to black-50 (#f9fafb)
Sourcefn text_black_100(&self) -> String
fn text_black_100(&self) -> String
sets text color to black-100 (#f3f4f6)
Sourcefn bg_black_100(&self) -> String
fn bg_black_100(&self) -> String
sets background color to black-100 (#f3f4f6)
Sourcefn text_black_200(&self) -> String
fn text_black_200(&self) -> String
sets text color to black-200 (#e5e7eb)
Sourcefn bg_black_200(&self) -> String
fn bg_black_200(&self) -> String
sets background color to black-200 (#e5e7eb)
Sourcefn text_black_300(&self) -> String
fn text_black_300(&self) -> String
sets text color to black-300 (#d1d5db)
Sourcefn bg_black_300(&self) -> String
fn bg_black_300(&self) -> String
sets background color to black-300 (#d1d5db)
Sourcefn text_black_400(&self) -> String
fn text_black_400(&self) -> String
sets text color to black-400 (#9ca3af)
Sourcefn bg_black_400(&self) -> String
fn bg_black_400(&self) -> String
sets background color to black-400 (#9ca3af)
Sourcefn text_black_500(&self) -> String
fn text_black_500(&self) -> String
sets text color to black-500 (#6b7280)
Sourcefn bg_black_500(&self) -> String
fn bg_black_500(&self) -> String
sets background color to black-500 (#6b7280)
Sourcefn text_black_600(&self) -> String
fn text_black_600(&self) -> String
sets text color to black-600 (#4b5563)
Sourcefn bg_black_600(&self) -> String
fn bg_black_600(&self) -> String
sets background color to black-600 (#4b5563)
Sourcefn text_black_700(&self) -> String
fn text_black_700(&self) -> String
sets text color to black-700 (#374151)
Sourcefn bg_black_700(&self) -> String
fn bg_black_700(&self) -> String
sets background color to black-700 (#374151)
Sourcefn text_black_800(&self) -> String
fn text_black_800(&self) -> String
sets text color to black-800 (#1f2937)
Sourcefn bg_black_800(&self) -> String
fn bg_black_800(&self) -> String
sets background color to black-800 (#1f2937)
Sourcefn text_black_900(&self) -> String
fn text_black_900(&self) -> String
sets text color to black-900 (#111827)
Sourcefn bg_black_900(&self) -> String
fn bg_black_900(&self) -> String
sets background color to black-900 (#111827)
Sourcefn text_black_950(&self) -> String
fn text_black_950(&self) -> String
sets text color to black-950 (#030712)
Sourcefn bg_black_950(&self) -> String
fn bg_black_950(&self) -> String
sets background color to black-950 (#030712)
Sourcefn text_gradient(&self, steps: &[&'static str]) -> String
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"]))Sourcefn bg_gradient(&self, steps: &[&'static str]) -> String
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"]))