1use bevy::prelude::Color;
2
3pub struct Colors;
4impl Colors {
5 pub fn print_color(color: Color) {
6 print!(
7 "\x1b[38;2;{};{};{}m",
8 (color.r * 255.0) as u8,
9 (color.g * 255.0) as u8,
10 (color.b * 255.0) as u8
11 );
12 print!(
13 "\n{};{};{}\n",
14 (color.r * 255.0) as u8,
15 (color.g * 255.0) as u8,
16 (color.b * 255.0) as u8
17 );
18 print!("RGBA: {}, {}, {}, {}", color.r, color.g, color.b, color.a);
19 println!("\x1b[0m");
20 }
21}
22
23pub struct Tailwind;
24impl Tailwind {
25 pub const BLACK: Color = Color::rgb(0.0, 0.0, 0.0);
26 pub const WHITE: Color = Color::rgb(1.0, 1.0, 1.0);
27
28 pub const GRAY100: Color = Color::rgb(247.0 / 255.0, 250.0 / 255.0, 252.0 / 255.0);
29 pub const GRAY200: Color = Color::rgb(237.0 / 255.0, 242.0 / 255.0, 247.0 / 255.0);
30 pub const GRAY300: Color = Color::rgb(226.0 / 255.0, 232.0 / 255.0, 240.0 / 255.0);
31 pub const GRAY400: Color = Color::rgb(203.0 / 255.0, 213.0 / 255.0, 224.0 / 255.0);
32 pub const GRAY500: Color = Color::rgb(160.0 / 255.0, 174.0 / 255.0, 192.0 / 255.0);
33 pub const GRAY600: Color = Color::rgb(113.0 / 255.0, 128.0 / 255.0, 150.0 / 255.0);
34 pub const GRAY700: Color = Color::rgb(74.0 / 255.0, 85.0 / 255.0, 104.0 / 255.0);
35 pub const GRAY800: Color = Color::rgb(45.0 / 255.0, 55.0 / 255.0, 72.0 / 255.0);
36 pub const GRAY900: Color = Color::rgb(26.0 / 255.0, 32.0 / 255.0, 44.0 / 255.0);
37
38 pub const RED100: Color = Color::rgb(255.0 / 255.0, 245.0 / 255.0, 245.0 / 255.0);
39 pub const RED200: Color = Color::rgb(254.0 / 255.0, 215.0 / 255.0, 215.0 / 255.0);
40 pub const RED300: Color = Color::rgb(254.0 / 255.0, 178.0 / 255.0, 178.0 / 255.0);
41 pub const RED400: Color = Color::rgb(252.0 / 255.0, 129.0 / 255.0, 129.0 / 255.0);
42 pub const RED500: Color = Color::rgb(245.0 / 255.0, 101.0 / 255.0, 101.0 / 255.0);
43 pub const RED600: Color = Color::rgb(229.0 / 255.0, 62.0 / 255.0, 62.0 / 255.0);
44 pub const RED700: Color = Color::rgb(197.0 / 255.0, 48.0 / 255.0, 48.0 / 255.0);
45 pub const RED800: Color = Color::rgb(155.0 / 255.0, 44.0 / 255.0, 44.0 / 255.0);
46 pub const RED900: Color = Color::rgb(116.0 / 255.0, 42.0 / 255.0, 42.0 / 255.0);
47
48 pub const ORANGE100: Color = Color::rgb(255.0 / 255.0, 250.0 / 255.0, 240.0 / 255.0);
49 pub const ORANGE200: Color = Color::rgb(254.0 / 255.0, 235.0 / 255.0, 200.0 / 255.0);
50 pub const ORANGE300: Color = Color::rgb(251.0 / 255.0, 211.0 / 255.0, 141.0 / 255.0);
51 pub const ORANGE400: Color = Color::rgb(246.0 / 255.0, 173.0 / 255.0, 85.0 / 255.0);
52 pub const ORANGE500: Color = Color::rgb(237.0 / 255.0, 137.0 / 255.0, 54.0 / 255.0);
53 pub const ORANGE600: Color = Color::rgb(221.0 / 255.0, 107.0 / 255.0, 32.0 / 255.0);
54 pub const ORANGE700: Color = Color::rgb(192.0 / 255.0, 86.0 / 255.0, 33.0 / 255.0);
55 pub const ORANGE800: Color = Color::rgb(156.0 / 255.0, 66.0 / 255.0, 33.0 / 255.0);
56 pub const ORANGE900: Color = Color::rgb(123.0 / 255.0, 52.0 / 255.0, 30.0 / 255.0);
57
58 pub const YELLOW100: Color = Color::rgb(255.0 / 255.0, 255.0 / 255.0, 240.0 / 255.0);
59 pub const YELLOW200: Color = Color::rgb(254.0 / 255.0, 252.0 / 255.0, 191.0 / 255.0);
60 pub const YELLOW300: Color = Color::rgb(250.0 / 255.0, 240.0 / 255.0, 137.0 / 255.0);
61 pub const YELLOW400: Color = Color::rgb(246.0 / 255.0, 224.0 / 255.0, 94.0 / 255.0);
62 pub const YELLOW500: Color = Color::rgb(236.0 / 255.0, 201.0 / 255.0, 75.0 / 255.0);
63 pub const YELLOW600: Color = Color::rgb(214.0 / 255.0, 158.0 / 255.0, 46.0 / 255.0);
64 pub const YELLOW700: Color = Color::rgb(183.0 / 255.0, 121.0 / 255.0, 31.0 / 255.0);
65 pub const YELLOW800: Color = Color::rgb(151.0 / 255.0, 90.0 / 255.0, 22.0 / 255.0);
66 pub const YELLOW900: Color = Color::rgb(116.0 / 255.0, 66.0 / 255.0, 16.0 / 255.0);
67
68 pub const GREEN100: Color = Color::rgb(240.0 / 255.0, 255.0 / 255.0, 244.0 / 255.0);
69 pub const GREEN200: Color = Color::rgb(198.0 / 255.0, 246.0 / 255.0, 213.0 / 255.0);
70 pub const GREEN300: Color = Color::rgb(154.0 / 255.0, 230.0 / 255.0, 180.0 / 255.0);
71 pub const GREEN400: Color = Color::rgb(104.0 / 255.0, 211.0 / 255.0, 145.0 / 255.0);
72 pub const GREEN500: Color = Color::rgb(72.0 / 255.0, 187.0 / 255.0, 120.0 / 255.0);
73 pub const GREEN600: Color = Color::rgb(56.0 / 255.0, 161.0 / 255.0, 105.0 / 255.0);
74 pub const GREEN700: Color = Color::rgb(47.0 / 255.0, 133.0 / 255.0, 90.0 / 255.0);
75 pub const GREEN800: Color = Color::rgb(39.0 / 255.0, 103.0 / 255.0, 73.0 / 255.0);
76 pub const GREEN900: Color = Color::rgb(34.0 / 255.0, 84.0 / 255.0, 61.0 / 255.0);
77
78 pub const TEAL100: Color = Color::rgb(230.0 / 255.0, 255.0 / 255.0, 250.0 / 255.0);
79 pub const TEAL200: Color = Color::rgb(178.0 / 255.0, 245.0 / 255.0, 234.0 / 255.0);
80 pub const TEAL300: Color = Color::rgb(129.0 / 255.0, 230.0 / 255.0, 217.0 / 255.0);
81 pub const TEAL400: Color = Color::rgb(79.0 / 255.0, 209.0 / 255.0, 197.0 / 255.0);
82 pub const TEAL500: Color = Color::rgb(56.0 / 255.0, 178.0 / 255.0, 172.0 / 255.0);
83 pub const TEAL600: Color = Color::rgb(49.0 / 255.0, 151.0 / 255.0, 149.0 / 255.0);
84 pub const TEAL700: Color = Color::rgb(44.0 / 255.0, 122.0 / 255.0, 123.0 / 255.0);
85 pub const TEAL800: Color = Color::rgb(40.0 / 255.0, 94.0 / 255.0, 97.0 / 255.0);
86 pub const TEAL900: Color = Color::rgb(35.0 / 255.0, 78.0 / 255.0, 82.0 / 255.0);
87
88 pub const BLUE100: Color = Color::rgb(235.0 / 255.0, 248.0 / 255.0, 255.0 / 255.0);
89 pub const BLUE200: Color = Color::rgb(190.0 / 255.0, 227.0 / 255.0, 248.0 / 255.0);
90 pub const BLUE300: Color = Color::rgb(144.0 / 255.0, 205.0 / 255.0, 244.0 / 255.0);
91 pub const BLUE400: Color = Color::rgb(99.0 / 255.0, 179.0 / 255.0, 237.0 / 255.0);
92 pub const BLUE500: Color = Color::rgb(66.0 / 255.0, 153.0 / 255.0, 225.0 / 255.0);
93 pub const BLUE600: Color = Color::rgb(49.0 / 255.0, 130.0 / 255.0, 206.0 / 255.0);
94 pub const BLUE700: Color = Color::rgb(43.0 / 255.0, 108.0 / 255.0, 176.0 / 255.0);
95 pub const BLUE800: Color = Color::rgb(44.0 / 255.0, 82.0 / 255.0, 130.0 / 255.0);
96 pub const BLUE900: Color = Color::rgb(42.0 / 255.0, 67.0 / 255.0, 101.0 / 255.0);
97
98 pub const INDIGO100: Color = Color::rgb(235.0 / 255.0, 244.0 / 255.0, 255.0 / 255.0);
99 pub const INDIGO200: Color = Color::rgb(195.0 / 255.0, 218.0 / 255.0, 254.0 / 255.0);
100 pub const INDIGO300: Color = Color::rgb(163.0 / 255.0, 191.0 / 255.0, 250.0 / 255.0);
101 pub const INDIGO400: Color = Color::rgb(127.0 / 255.0, 156.0 / 255.0, 245.0 / 255.0);
102 pub const INDIGO500: Color = Color::rgb(102.0 / 255.0, 126.0 / 255.0, 234.0 / 255.0);
103 pub const INDIGO600: Color = Color::rgb(90.0 / 255.0, 103.0 / 255.0, 216.0 / 255.0);
104 pub const INDIGO700: Color = Color::rgb(76.0 / 255.0, 81.0 / 255.0, 191.0 / 255.0);
105 pub const INDIGO800: Color = Color::rgb(67.0 / 255.0, 65.0 / 255.0, 144.0 / 255.0);
106 pub const INDIGO900: Color = Color::rgb(60.0 / 255.0, 54.0 / 255.0, 107.0 / 255.0);
107
108 pub const PURPLE100: Color = Color::rgb(250.0 / 255.0, 245.0 / 255.0, 255.0 / 255.0);
109 pub const PURPLE200: Color = Color::rgb(233.0 / 255.0, 216.0 / 255.0, 253.0 / 255.0);
110 pub const PURPLE300: Color = Color::rgb(214.0 / 255.0, 188.0 / 255.0, 250.0 / 255.0);
111 pub const PURPLE400: Color = Color::rgb(183.0 / 255.0, 148.0 / 255.0, 244.0 / 255.0);
112 pub const PURPLE500: Color = Color::rgb(159.0 / 255.0, 122.0 / 255.0, 234.0 / 255.0);
113 pub const PURPLE600: Color = Color::rgb(128.0 / 255.0, 90.0 / 255.0, 213.0 / 255.0);
114 pub const PURPLE700: Color = Color::rgb(107.0 / 255.0, 70.0 / 255.0, 193.0 / 255.0);
115 pub const PURPLE800: Color = Color::rgb(85.0 / 255.0, 60.0 / 255.0, 154.0 / 255.0);
116 pub const PURPLE900: Color = Color::rgb(68.0 / 255.0, 51.0 / 255.0, 122.0 / 255.0);
117
118 pub const PINK100: Color = Color::rgb(255.0 / 255.0, 245.0 / 255.0, 247.0 / 255.0);
119 pub const PINK200: Color = Color::rgb(254.0 / 255.0, 215.0 / 255.0, 226.0 / 255.0);
120 pub const PINK300: Color = Color::rgb(251.0 / 255.0, 182.0 / 255.0, 206.0 / 255.0);
121 pub const PINK400: Color = Color::rgb(246.0 / 255.0, 135.0 / 255.0, 179.0 / 255.0);
122 pub const PINK500: Color = Color::rgb(237.0 / 255.0, 100.0 / 255.0, 166.0 / 255.0);
123 pub const PINK600: Color = Color::rgb(213.0 / 255.0, 63.0 / 255.0, 140.0 / 255.0);
124 pub const PINK700: Color = Color::rgb(184.0 / 255.0, 50.0 / 255.0, 128.0 / 255.0);
125 pub const PINK800: Color = Color::rgb(151.0 / 255.0, 38.0 / 255.0, 109.0 / 255.0);
126 pub const PINK900: Color = Color::rgb(112.0 / 255.0, 36.0 / 255.0, 89.0 / 255.0);
127}