palenight.rs
1// This file was generated by the `theme_importer`.
2// Be careful when modifying it by hand.
3
4use gpui::rgba;
5
6#[allow(unused)]
7use crate::{
8 Appearance, StatusColorsRefinement, ThemeColorsRefinement, UserFontStyle, UserFontWeight,
9 UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily, UserThemeStylesRefinement,
10};
11
12pub fn palenight() -> UserThemeFamily {
13 UserThemeFamily {
14 name: "Palenight".into(),
15 author: "Olaolu Olawuyi (whizkydee)".into(),
16 themes: vec![
17 UserTheme {
18 name: "Palenight".into(),
19 appearance: Appearance::Dark,
20 styles: UserThemeStylesRefinement {
21 colors: ThemeColorsRefinement {
22 border: Some(rgba(0x282b3bff).into()),
23 border_variant: Some(rgba(0x282b3bff).into()),
24 border_focused: Some(rgba(0x282b3bff).into()),
25 border_selected: Some(rgba(0x282b3bff).into()),
26 border_transparent: Some(rgba(0x282b3bff).into()),
27 border_disabled: Some(rgba(0x282b3bff).into()),
28 elevated_surface_background: Some(rgba(0x292c3eff).into()),
29 surface_background: Some(rgba(0x292c3eff).into()),
30 background: Some(rgba(0x292c3eff).into()),
31 element_background: Some(rgba(0x7d56c1cc).into()),
32 element_hover: Some(rgba(0x0000001a).into()),
33 element_selected: Some(rgba(0x7d56c1ff).into()),
34 drop_target_background: Some(rgba(0x2e3245ff).into()),
35 ghost_element_hover: Some(rgba(0x0000001a).into()),
36 text: Some(rgba(0xffffffff).into()),
37 tab_inactive_background: Some(rgba(0x31364aff).into()),
38 tab_active_background: Some(rgba(0x292c3eff).into()),
39 editor_background: Some(rgba(0x292c3eff).into()),
40 editor_gutter_background: Some(rgba(0x292c3eff).into()),
41 editor_line_number: Some(rgba(0x4c5374ff).into()),
42 editor_active_line_number: Some(rgba(0xbfc7d5ff).into()),
43 terminal_ansi_bright_black: Some(rgba(0x676e95ff).into()),
44 terminal_ansi_bright_red: Some(rgba(0xff5571ff).into()),
45 terminal_ansi_bright_green: Some(rgba(0xc3e88dff).into()),
46 terminal_ansi_bright_yellow: Some(rgba(0xffcb6bff).into()),
47 terminal_ansi_bright_blue: Some(rgba(0x82aaffff).into()),
48 terminal_ansi_bright_magenta: Some(rgba(0xc792eaff).into()),
49 terminal_ansi_bright_cyan: Some(rgba(0x89ddffff).into()),
50 terminal_ansi_bright_white: Some(rgba(0xffffffff).into()),
51 terminal_ansi_black: Some(rgba(0x676e95ff).into()),
52 terminal_ansi_red: Some(rgba(0xff5571ff).into()),
53 terminal_ansi_green: Some(rgba(0xa9c77dff).into()),
54 terminal_ansi_yellow: Some(rgba(0xffcb6bff).into()),
55 terminal_ansi_blue: Some(rgba(0x82aaffff).into()),
56 terminal_ansi_magenta: Some(rgba(0xc792eaff).into()),
57 terminal_ansi_cyan: Some(rgba(0x89ddffff).into()),
58 terminal_ansi_white: Some(rgba(0xffffffff).into()),
59 ..Default::default()
60 },
61 status: StatusColorsRefinement {
62 deleted: Some(rgba(0xef524fff).into()),
63 error: Some(rgba(0xef524fff).into()),
64 hidden: Some(rgba(0x9199c8ff).into()),
65 ..Default::default()
66 },
67 syntax: Some(UserSyntaxTheme {
68 highlights: vec![
69 (
70 "attribute".into(),
71 UserHighlightStyle {
72 color: Some(rgba(0xffcb6bff).into()),
73 ..Default::default()
74 },
75 ),
76 (
77 "boolean".into(),
78 UserHighlightStyle {
79 color: Some(rgba(0x82aaffff).into()),
80 ..Default::default()
81 },
82 ),
83 (
84 "comment".into(),
85 UserHighlightStyle {
86 color: Some(rgba(0x687097ff).into()),
87 font_style: Some(UserFontStyle::Italic),
88 ..Default::default()
89 },
90 ),
91 (
92 "constant".into(),
93 UserHighlightStyle {
94 color: Some(rgba(0x82aaffff).into()),
95 ..Default::default()
96 },
97 ),
98 (
99 "emphasis".into(),
100 UserHighlightStyle {
101 color: Some(rgba(0xc792eaff).into()),
102 font_style: Some(UserFontStyle::Italic),
103 ..Default::default()
104 },
105 ),
106 (
107 "emphasis.strong".into(),
108 UserHighlightStyle {
109 color: Some(rgba(0xffcb6bff).into()),
110 font_weight: Some(UserFontWeight(700.0)),
111 ..Default::default()
112 },
113 ),
114 (
115 "function".into(),
116 UserHighlightStyle {
117 color: Some(rgba(0x82aaffff).into()),
118 ..Default::default()
119 },
120 ),
121 (
122 "keyword".into(),
123 UserHighlightStyle {
124 color: Some(rgba(0xc792eaff).into()),
125 ..Default::default()
126 },
127 ),
128 (
129 "link_text".into(),
130 UserHighlightStyle {
131 color: Some(rgba(0xff869aff).into()),
132 ..Default::default()
133 },
134 ),
135 (
136 "link_uri".into(),
137 UserHighlightStyle {
138 color: Some(rgba(0xff869aff).into()),
139 ..Default::default()
140 },
141 ),
142 (
143 "number".into(),
144 UserHighlightStyle {
145 color: Some(rgba(0xf78b6bff).into()),
146 ..Default::default()
147 },
148 ),
149 (
150 "operator".into(),
151 UserHighlightStyle {
152 color: Some(rgba(0x89ddffff).into()),
153 ..Default::default()
154 },
155 ),
156 (
157 "property".into(),
158 UserHighlightStyle {
159 color: Some(rgba(0x7fcac3ff).into()),
160 ..Default::default()
161 },
162 ),
163 (
164 "punctuation".into(),
165 UserHighlightStyle {
166 color: Some(rgba(0xc792eaff).into()),
167 ..Default::default()
168 },
169 ),
170 (
171 "string".into(),
172 UserHighlightStyle {
173 color: Some(rgba(0xc3e88dff).into()),
174 ..Default::default()
175 },
176 ),
177 (
178 "string.escape".into(),
179 UserHighlightStyle {
180 color: Some(rgba(0x82aaffff).into()),
181 ..Default::default()
182 },
183 ),
184 (
185 "tag".into(),
186 UserHighlightStyle {
187 color: Some(rgba(0xff5571ff).into()),
188 ..Default::default()
189 },
190 ),
191 (
192 "text.literal".into(),
193 UserHighlightStyle {
194 color: Some(rgba(0xc3e88dff).into()),
195 ..Default::default()
196 },
197 ),
198 (
199 "type".into(),
200 UserHighlightStyle {
201 color: Some(rgba(0xffcb6bff).into()),
202 ..Default::default()
203 },
204 ),
205 (
206 "variable".into(),
207 UserHighlightStyle {
208 color: Some(rgba(0xffcb6bff).into()),
209 ..Default::default()
210 },
211 ),
212 (
213 "variable.special".into(),
214 UserHighlightStyle {
215 color: Some(rgba(0xff5571ff).into()),
216 ..Default::default()
217 },
218 ),
219 ],
220 }),
221 },
222 },
223 UserTheme {
224 name: "Palenight Operator".into(),
225 appearance: Appearance::Dark,
226 styles: UserThemeStylesRefinement {
227 colors: ThemeColorsRefinement {
228 border: Some(rgba(0x282b3bff).into()),
229 border_variant: Some(rgba(0x282b3bff).into()),
230 border_focused: Some(rgba(0x282b3bff).into()),
231 border_selected: Some(rgba(0x282b3bff).into()),
232 border_transparent: Some(rgba(0x282b3bff).into()),
233 border_disabled: Some(rgba(0x282b3bff).into()),
234 elevated_surface_background: Some(rgba(0x292c3eff).into()),
235 surface_background: Some(rgba(0x292c3eff).into()),
236 background: Some(rgba(0x292c3eff).into()),
237 element_background: Some(rgba(0x7d56c1cc).into()),
238 element_hover: Some(rgba(0x0000001a).into()),
239 element_selected: Some(rgba(0x7d56c1ff).into()),
240 drop_target_background: Some(rgba(0x2e3245ff).into()),
241 ghost_element_hover: Some(rgba(0x0000001a).into()),
242 text: Some(rgba(0xffffffff).into()),
243 tab_inactive_background: Some(rgba(0x31364aff).into()),
244 tab_active_background: Some(rgba(0x292c3eff).into()),
245 editor_background: Some(rgba(0x292c3eff).into()),
246 editor_gutter_background: Some(rgba(0x292c3eff).into()),
247 editor_line_number: Some(rgba(0x4c5374ff).into()),
248 editor_active_line_number: Some(rgba(0xbfc7d5ff).into()),
249 terminal_ansi_bright_black: Some(rgba(0x676e95ff).into()),
250 terminal_ansi_bright_red: Some(rgba(0xff5571ff).into()),
251 terminal_ansi_bright_green: Some(rgba(0xc3e88dff).into()),
252 terminal_ansi_bright_yellow: Some(rgba(0xffcb6bff).into()),
253 terminal_ansi_bright_blue: Some(rgba(0x82aaffff).into()),
254 terminal_ansi_bright_magenta: Some(rgba(0xc792eaff).into()),
255 terminal_ansi_bright_cyan: Some(rgba(0x89ddffff).into()),
256 terminal_ansi_bright_white: Some(rgba(0xffffffff).into()),
257 terminal_ansi_black: Some(rgba(0x676e95ff).into()),
258 terminal_ansi_red: Some(rgba(0xff5571ff).into()),
259 terminal_ansi_green: Some(rgba(0xa9c77dff).into()),
260 terminal_ansi_yellow: Some(rgba(0xffcb6bff).into()),
261 terminal_ansi_blue: Some(rgba(0x82aaffff).into()),
262 terminal_ansi_magenta: Some(rgba(0xc792eaff).into()),
263 terminal_ansi_cyan: Some(rgba(0x89ddffff).into()),
264 terminal_ansi_white: Some(rgba(0xffffffff).into()),
265 ..Default::default()
266 },
267 status: StatusColorsRefinement {
268 deleted: Some(rgba(0xef524fff).into()),
269 error: Some(rgba(0xef524fff).into()),
270 hidden: Some(rgba(0x9199c8ff).into()),
271 ..Default::default()
272 },
273 syntax: Some(UserSyntaxTheme {
274 highlights: vec![
275 (
276 "attribute".into(),
277 UserHighlightStyle {
278 color: Some(rgba(0xffcb6bff).into()),
279 ..Default::default()
280 },
281 ),
282 (
283 "boolean".into(),
284 UserHighlightStyle {
285 color: Some(rgba(0x82aaffff).into()),
286 ..Default::default()
287 },
288 ),
289 (
290 "comment".into(),
291 UserHighlightStyle {
292 color: Some(rgba(0x687097ff).into()),
293 font_style: Some(UserFontStyle::Italic),
294 ..Default::default()
295 },
296 ),
297 (
298 "constant".into(),
299 UserHighlightStyle {
300 color: Some(rgba(0x82aaffff).into()),
301 ..Default::default()
302 },
303 ),
304 (
305 "emphasis".into(),
306 UserHighlightStyle {
307 color: Some(rgba(0xc792eaff).into()),
308 font_style: Some(UserFontStyle::Italic),
309 ..Default::default()
310 },
311 ),
312 (
313 "emphasis.strong".into(),
314 UserHighlightStyle {
315 color: Some(rgba(0xffcb6bff).into()),
316 font_weight: Some(UserFontWeight(700.0)),
317 ..Default::default()
318 },
319 ),
320 (
321 "function".into(),
322 UserHighlightStyle {
323 color: Some(rgba(0x82aaffff).into()),
324 ..Default::default()
325 },
326 ),
327 (
328 "keyword".into(),
329 UserHighlightStyle {
330 color: Some(rgba(0xc792eaff).into()),
331 ..Default::default()
332 },
333 ),
334 (
335 "link_text".into(),
336 UserHighlightStyle {
337 color: Some(rgba(0xff869aff).into()),
338 ..Default::default()
339 },
340 ),
341 (
342 "link_uri".into(),
343 UserHighlightStyle {
344 color: Some(rgba(0xff869aff).into()),
345 ..Default::default()
346 },
347 ),
348 (
349 "number".into(),
350 UserHighlightStyle {
351 color: Some(rgba(0xf78b6bff).into()),
352 ..Default::default()
353 },
354 ),
355 (
356 "operator".into(),
357 UserHighlightStyle {
358 color: Some(rgba(0x89ddffff).into()),
359 ..Default::default()
360 },
361 ),
362 (
363 "property".into(),
364 UserHighlightStyle {
365 color: Some(rgba(0x7fcac3ff).into()),
366 ..Default::default()
367 },
368 ),
369 (
370 "punctuation".into(),
371 UserHighlightStyle {
372 color: Some(rgba(0xc792eaff).into()),
373 ..Default::default()
374 },
375 ),
376 (
377 "string".into(),
378 UserHighlightStyle {
379 color: Some(rgba(0xc3e88dff).into()),
380 ..Default::default()
381 },
382 ),
383 (
384 "string.escape".into(),
385 UserHighlightStyle {
386 color: Some(rgba(0x82aaffff).into()),
387 ..Default::default()
388 },
389 ),
390 (
391 "tag".into(),
392 UserHighlightStyle {
393 color: Some(rgba(0xff5571ff).into()),
394 ..Default::default()
395 },
396 ),
397 (
398 "text.literal".into(),
399 UserHighlightStyle {
400 color: Some(rgba(0xc3e88dff).into()),
401 ..Default::default()
402 },
403 ),
404 (
405 "type".into(),
406 UserHighlightStyle {
407 color: Some(rgba(0xffcb6bff).into()),
408 ..Default::default()
409 },
410 ),
411 (
412 "variable".into(),
413 UserHighlightStyle {
414 color: Some(rgba(0xffcb6bff).into()),
415 ..Default::default()
416 },
417 ),
418 (
419 "variable.special".into(),
420 UserHighlightStyle {
421 color: Some(rgba(0xff5571ff).into()),
422 ..Default::default()
423 },
424 ),
425 ],
426 }),
427 },
428 },
429 UserTheme {
430 name: "Palenight (Mild Contrast)".into(),
431 appearance: Appearance::Dark,
432 styles: UserThemeStylesRefinement {
433 colors: ThemeColorsRefinement {
434 border: Some(rgba(0x2c2f40ff).into()),
435 border_variant: Some(rgba(0x2c2f40ff).into()),
436 border_focused: Some(rgba(0x2c2f40ff).into()),
437 border_selected: Some(rgba(0x2c2f40ff).into()),
438 border_transparent: Some(rgba(0x2c2f40ff).into()),
439 border_disabled: Some(rgba(0x2c2f40ff).into()),
440 elevated_surface_background: Some(rgba(0x25283aff).into()),
441 surface_background: Some(rgba(0x25283aff).into()),
442 background: Some(rgba(0x292c3eff).into()),
443 element_background: Some(rgba(0x7d56c1cc).into()),
444 element_hover: Some(rgba(0x0000001a).into()),
445 element_selected: Some(rgba(0x7d56c1ff).into()),
446 drop_target_background: Some(rgba(0x2e3245ff).into()),
447 ghost_element_hover: Some(rgba(0x0000001a).into()),
448 text: Some(rgba(0xffffffff).into()),
449 tab_inactive_background: Some(rgba(0x31364aff).into()),
450 tab_active_background: Some(rgba(0x25283aff).into()),
451 editor_background: Some(rgba(0x292c3eff).into()),
452 editor_gutter_background: Some(rgba(0x292c3eff).into()),
453 editor_line_number: Some(rgba(0x4c5374ff).into()),
454 editor_active_line_number: Some(rgba(0xbfc7d5ff).into()),
455 terminal_ansi_bright_black: Some(rgba(0x676e95ff).into()),
456 terminal_ansi_bright_red: Some(rgba(0xff5571ff).into()),
457 terminal_ansi_bright_green: Some(rgba(0xc3e88dff).into()),
458 terminal_ansi_bright_yellow: Some(rgba(0xffcb6bff).into()),
459 terminal_ansi_bright_blue: Some(rgba(0x82aaffff).into()),
460 terminal_ansi_bright_magenta: Some(rgba(0xc792eaff).into()),
461 terminal_ansi_bright_cyan: Some(rgba(0x89ddffff).into()),
462 terminal_ansi_bright_white: Some(rgba(0xffffffff).into()),
463 terminal_ansi_black: Some(rgba(0x676e95ff).into()),
464 terminal_ansi_red: Some(rgba(0xff5571ff).into()),
465 terminal_ansi_green: Some(rgba(0xa9c77dff).into()),
466 terminal_ansi_yellow: Some(rgba(0xffcb6bff).into()),
467 terminal_ansi_blue: Some(rgba(0x82aaffff).into()),
468 terminal_ansi_magenta: Some(rgba(0xc792eaff).into()),
469 terminal_ansi_cyan: Some(rgba(0x89ddffff).into()),
470 terminal_ansi_white: Some(rgba(0xffffffff).into()),
471 ..Default::default()
472 },
473 status: StatusColorsRefinement {
474 deleted: Some(rgba(0xef524fff).into()),
475 error: Some(rgba(0xef524fff).into()),
476 hidden: Some(rgba(0x9199c8ff).into()),
477 ..Default::default()
478 },
479 syntax: Some(UserSyntaxTheme {
480 highlights: vec![
481 (
482 "attribute".into(),
483 UserHighlightStyle {
484 color: Some(rgba(0xffcb6bff).into()),
485 ..Default::default()
486 },
487 ),
488 (
489 "boolean".into(),
490 UserHighlightStyle {
491 color: Some(rgba(0x82aaffff).into()),
492 ..Default::default()
493 },
494 ),
495 (
496 "comment".into(),
497 UserHighlightStyle {
498 color: Some(rgba(0x687097ff).into()),
499 font_style: Some(UserFontStyle::Italic),
500 ..Default::default()
501 },
502 ),
503 (
504 "constant".into(),
505 UserHighlightStyle {
506 color: Some(rgba(0x82aaffff).into()),
507 ..Default::default()
508 },
509 ),
510 (
511 "emphasis".into(),
512 UserHighlightStyle {
513 color: Some(rgba(0xc792eaff).into()),
514 font_style: Some(UserFontStyle::Italic),
515 ..Default::default()
516 },
517 ),
518 (
519 "emphasis.strong".into(),
520 UserHighlightStyle {
521 color: Some(rgba(0xffcb6bff).into()),
522 font_weight: Some(UserFontWeight(700.0)),
523 ..Default::default()
524 },
525 ),
526 (
527 "function".into(),
528 UserHighlightStyle {
529 color: Some(rgba(0x82aaffff).into()),
530 ..Default::default()
531 },
532 ),
533 (
534 "keyword".into(),
535 UserHighlightStyle {
536 color: Some(rgba(0xc792eaff).into()),
537 ..Default::default()
538 },
539 ),
540 (
541 "link_text".into(),
542 UserHighlightStyle {
543 color: Some(rgba(0xff869aff).into()),
544 ..Default::default()
545 },
546 ),
547 (
548 "link_uri".into(),
549 UserHighlightStyle {
550 color: Some(rgba(0xff869aff).into()),
551 ..Default::default()
552 },
553 ),
554 (
555 "number".into(),
556 UserHighlightStyle {
557 color: Some(rgba(0xf78b6bff).into()),
558 ..Default::default()
559 },
560 ),
561 (
562 "operator".into(),
563 UserHighlightStyle {
564 color: Some(rgba(0x89ddffff).into()),
565 ..Default::default()
566 },
567 ),
568 (
569 "property".into(),
570 UserHighlightStyle {
571 color: Some(rgba(0x7fcac3ff).into()),
572 ..Default::default()
573 },
574 ),
575 (
576 "punctuation".into(),
577 UserHighlightStyle {
578 color: Some(rgba(0xc792eaff).into()),
579 ..Default::default()
580 },
581 ),
582 (
583 "string".into(),
584 UserHighlightStyle {
585 color: Some(rgba(0xc3e88dff).into()),
586 ..Default::default()
587 },
588 ),
589 (
590 "string.escape".into(),
591 UserHighlightStyle {
592 color: Some(rgba(0x82aaffff).into()),
593 ..Default::default()
594 },
595 ),
596 (
597 "tag".into(),
598 UserHighlightStyle {
599 color: Some(rgba(0xff5571ff).into()),
600 ..Default::default()
601 },
602 ),
603 (
604 "text.literal".into(),
605 UserHighlightStyle {
606 color: Some(rgba(0xc3e88dff).into()),
607 ..Default::default()
608 },
609 ),
610 (
611 "type".into(),
612 UserHighlightStyle {
613 color: Some(rgba(0xffcb6bff).into()),
614 ..Default::default()
615 },
616 ),
617 (
618 "variable".into(),
619 UserHighlightStyle {
620 color: Some(rgba(0xffcb6bff).into()),
621 ..Default::default()
622 },
623 ),
624 (
625 "variable.special".into(),
626 UserHighlightStyle {
627 color: Some(rgba(0xff5571ff).into()),
628 ..Default::default()
629 },
630 ),
631 ],
632 }),
633 },
634 },
635 ],
636 }
637}