spm_swift_package/utils/theme_colors.rs
1use colored::Color as TermColor;
2use iced::Color as IcedColor;
3
4/// Centralized color palette used for both Iced UI and colored terminal output
5pub struct ThemeColors;
6
7impl ThemeColors {
8 // ICED COLORS
9
10 /// Hex: `#F05138`
11 pub const ORANGE: IcedColor = IcedColor::from_rgb8(240, 81, 56);
12
13 /// Hex: `#808080`
14 pub const GRAY: IcedColor = IcedColor::from_rgb8(128, 128, 128);
15
16 // TERMINAL COLORS
17
18 /// Terminal equivalent of `ORANGE`
19 pub const ORANGE_TERM: TermColor = TermColor::TrueColor {
20 r: 240,
21 g: 81,
22 b: 56,
23 };
24}