MCPcopy Create free account
hub / github.com/bajrangCoder/setu / teal

Method teal

src/theme/gpui_theme.rs:56–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54
55impl SetuColors {
56 fn teal() -> Self {
57 Self {
58 // Backgrounds
59 bg_primary: hsla(240.0 / 360.0, 0.10, 0.08, 1.0),
60 bg_secondary: hsla(240.0 / 360.0, 0.08, 0.10, 1.0),
61 bg_tertiary: hsla(240.0 / 360.0, 0.08, 0.12, 1.0),
62 bg_elevated: hsla(240.0 / 360.0, 0.10, 0.14, 1.0),
63 bg_overlay: hsla(0.0, 0.0, 0.0, 0.6),
64
65 // Foregrounds
66 text_primary: hsla(0.0, 0.0, 0.93, 1.0),
67 text_secondary: hsla(240.0 / 360.0, 0.05, 0.65, 1.0),
68 text_muted: hsla(240.0 / 360.0, 0.04, 0.45, 1.0),
69
70 // Borders
71 border_primary: hsla(240.0 / 360.0, 0.06, 0.18, 1.0),
72 border_secondary: hsla(240.0 / 360.0, 0.05, 0.22, 1.0),
73 border_focus: hsla(165.0 / 360.0, 0.80, 0.50, 1.0),
74
75 // Accent - teal/cyan
76 accent: hsla(165.0 / 360.0, 0.80, 0.45, 1.0),
77 accent_hover: hsla(165.0 / 360.0, 0.80, 0.52, 1.0),
78 accent_muted: hsla(165.0 / 360.0, 0.40, 0.25, 1.0),
79
80 // Semantic
81 success: hsla(145.0 / 360.0, 0.70, 0.45, 1.0),
82 warning: hsla(40.0 / 360.0, 0.95, 0.55, 1.0),
83 error: hsla(0.0 / 360.0, 0.75, 0.55, 1.0),
84 info: hsla(200.0 / 360.0, 0.80, 0.55, 1.0),
85
86 // HTTP Methods
87 method_get: hsla(145.0 / 360.0, 0.70, 0.50, 1.0), // green
88 method_post: hsla(280.0 / 360.0, 0.65, 0.60, 1.0), // purple/magenta
89 method_put: hsla(200.0 / 360.0, 0.75, 0.55, 1.0), // blue
90 method_delete: hsla(0.0 / 360.0, 0.75, 0.55, 1.0), // red
91 method_patch: hsla(35.0 / 360.0, 0.90, 0.55, 1.0), // orange
92 method_head: hsla(180.0 / 360.0, 0.60, 0.45, 1.0), // cyan
93 method_options: hsla(320.0 / 360.0, 0.60, 0.55, 1.0), // pink
94
95 // Status codes
96 status_1xx: hsla(200.0 / 360.0, 0.75, 0.55, 1.0),
97 status_2xx: hsla(145.0 / 360.0, 0.70, 0.50, 1.0),
98 status_3xx: hsla(35.0 / 360.0, 0.85, 0.55, 1.0),
99 status_4xx: hsla(35.0 / 360.0, 0.90, 0.55, 1.0),
100 status_5xx: hsla(0.0 / 360.0, 0.75, 0.55, 1.0),
101 }
102 }
103}
104
105fn apply_setu_teal_theme(cx: &mut App) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected