-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththemes.ts
More file actions
210 lines (202 loc) · 4.44 KB
/
themes.ts
File metadata and controls
210 lines (202 loc) · 4.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/**
* @file Elegant theme definitions for Socket libraries. Sophisticated color
* palettes crafted for clarity and visual harmony. Philosophy: Every color
* choice serves a purpose. Bright variants ensure terminal legibility without
* compromising sophistication. Minimal emoji use, refined symbols with
* color—elegance in restraint.
*/
import type { Theme } from './types'
/**
* Socket Security — The signature theme. Refined violet with subtle shimmer,
* designed for focus and elegance.
*/
export const SOCKET_THEME: Theme = {
name: 'socket',
displayName: 'Socket Security',
colors: {
primary: [140, 82, 255],
success: 'greenBright',
error: 'redBright',
warning: 'yellowBright',
info: 'blueBright',
step: 'cyanBright',
text: 'white',
textDim: 'gray',
link: 'cyanBright',
prompt: 'primary',
},
effects: {
spinner: {
color: 'primary',
style: 'socket',
},
shimmer: {
enabled: true,
color: 'inherit',
direction: 'ltr',
speed: 0.33,
},
},
meta: {
description: 'Signature theme with refined violet and subtle shimmer',
version: '1.0.0',
},
}
/**
* Sunset — Vibrant twilight gradient. Warm sunset palette with orange and
* purple/pink tones.
*/
export const SUNSET_THEME: Theme = {
name: 'sunset',
displayName: 'Sunset',
colors: {
primary: [255, 140, 100],
secondary: [200, 100, 180],
success: 'greenBright',
error: 'redBright',
warning: 'yellowBright',
info: 'magentaBright',
step: 'magentaBright',
text: 'white',
textDim: 'gray',
link: 'primary',
prompt: 'primary',
},
effects: {
spinner: {
color: 'primary',
style: 'dots',
},
shimmer: {
enabled: true,
color: [
[200, 100, 180],
[255, 140, 100],
],
direction: 'ltr',
speed: 0.4,
},
},
meta: {
description: 'Warm sunset theme with purple-to-orange gradient',
version: '2.0.0',
},
}
/**
* Terracotta — Solid warmth. Rich terracotta and ember tones for grounded
* confidence.
*/
export const TERRACOTTA_THEME: Theme = {
name: 'terracotta',
displayName: 'Terracotta',
colors: {
primary: [255, 100, 50],
secondary: [255, 150, 100],
success: 'greenBright',
error: 'redBright',
warning: 'yellowBright',
info: 'blueBright',
step: 'cyanBright',
text: 'white',
textDim: 'gray',
link: 'secondary',
prompt: 'primary',
},
effects: {
spinner: {
color: 'primary',
style: 'socket',
},
shimmer: {
enabled: true,
color: 'inherit',
direction: 'ltr',
speed: 0.5,
},
},
meta: {
description: 'Solid theme with rich terracotta and ember warmth',
version: '1.0.0',
},
}
/**
* Lush — Steel elegance. Python-inspired steel blue with golden accents.
*/
export const LUSH_THEME: Theme = {
name: 'lush',
displayName: 'Lush',
colors: {
primary: [70, 130, 180],
secondary: [255, 215, 0],
success: 'greenBright',
error: 'redBright',
warning: 'yellowBright',
info: 'blueBright',
step: 'cyanBright',
text: 'white',
textDim: 'gray',
link: 'cyanBright',
prompt: 'primary',
},
effects: {
spinner: {
color: 'primary',
style: 'dots',
},
},
meta: {
description: 'Elegant theme with steel blue and golden harmony',
version: '1.0.0',
},
}
/**
* Ultra — Premium intensity. Prismatic shimmer for deep analysis, where
* complexity meets elegance.
*/
export const ULTRA_THEME: Theme = {
name: 'ultra',
displayName: 'Ultra',
colors: {
primary: [140, 82, 255],
success: 'greenBright',
error: 'redBright',
warning: 'yellowBright',
info: 'cyanBright',
step: 'magentaBright',
text: 'whiteBright',
textDim: 'gray',
link: 'cyanBright',
prompt: 'primary',
},
effects: {
spinner: {
color: 'inherit',
style: 'socket',
},
shimmer: {
enabled: true,
color: 'rainbow',
direction: 'bi',
speed: 0.5,
},
},
meta: {
description: 'Premium theme with prismatic shimmer for deep analysis',
version: '1.0.0',
},
}
/**
* Theme registry — Curated palette collection.
*/
export const THEMES = {
__proto__: null,
socket: SOCKET_THEME,
sunset: SUNSET_THEME,
terracotta: TERRACOTTA_THEME,
lush: LUSH_THEME,
ultra: ULTRA_THEME,
} as const
/**
* Available theme identifiers.
*/
export type ThemeName = keyof typeof THEMES