rose_pine.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 rose_pine() -> UserThemeFamily {
13 UserThemeFamily {
14 name: "Rose Pine".into(),
15 author: "Rosé Pine".into(),
16 themes: vec![
17 UserTheme {
18 name: "Rose Pine".into(),
19 appearance: Appearance::Dark,
20 styles: UserThemeStylesRefinement {
21 colors: ThemeColorsRefinement {
22 border: Some(rgba(0x000000ff).into()),
23 border_variant: Some(rgba(0x000000ff).into()),
24 border_focused: Some(rgba(0x6e6a8633).into()),
25 border_selected: Some(rgba(0x000000ff).into()),
26 border_transparent: Some(rgba(0x000000ff).into()),
27 border_disabled: Some(rgba(0x000000ff).into()),
28 elevated_surface_background: Some(rgba(0x1f1d2eff).into()),
29 surface_background: Some(rgba(0x1f1d2eff).into()),
30 background: Some(rgba(0x191724ff).into()),
31 element_background: Some(rgba(0xebbcbaff).into()),
32 element_hover: Some(rgba(0x6e6a861a).into()),
33 element_selected: Some(rgba(0x6e6a8633).into()),
34 drop_target_background: Some(rgba(0x1f1d2eff).into()),
35 ghost_element_hover: Some(rgba(0x6e6a861a).into()),
36 text: Some(rgba(0xe0def4ff).into()),
37 status_bar_background: Some(rgba(0x191724ff).into()),
38 title_bar_background: Some(rgba(0x191724ff).into()),
39 toolbar_background: Some(rgba(0x1f1d2eff).into()),
40 tab_bar_background: Some(rgba(0x1f1d2eff).into()),
41 tab_inactive_background: Some(rgba(0x000000ff).into()),
42 tab_active_background: Some(rgba(0x6e6a861a).into()),
43 editor_background: Some(rgba(0x191724ff).into()),
44 editor_gutter_background: Some(rgba(0x191724ff).into()),
45 editor_line_number: Some(rgba(0x908caaff).into()),
46 editor_active_line_number: Some(rgba(0xe0def4ff).into()),
47 terminal_ansi_bright_black: Some(rgba(0x908caaff).into()),
48 terminal_ansi_bright_red: Some(rgba(0xeb6f92ff).into()),
49 terminal_ansi_bright_green: Some(rgba(0x31748fff).into()),
50 terminal_ansi_bright_yellow: Some(rgba(0xf6c177ff).into()),
51 terminal_ansi_bright_blue: Some(rgba(0x9ccfd8ff).into()),
52 terminal_ansi_bright_magenta: Some(rgba(0xc4a7e7ff).into()),
53 terminal_ansi_bright_cyan: Some(rgba(0xebbcbaff).into()),
54 terminal_ansi_bright_white: Some(rgba(0xe0def4ff).into()),
55 terminal_ansi_black: Some(rgba(0x26233aff).into()),
56 terminal_ansi_red: Some(rgba(0xeb6f92ff).into()),
57 terminal_ansi_green: Some(rgba(0x31748fff).into()),
58 terminal_ansi_yellow: Some(rgba(0xf6c177ff).into()),
59 terminal_ansi_blue: Some(rgba(0x9ccfd8ff).into()),
60 terminal_ansi_magenta: Some(rgba(0xc4a7e7ff).into()),
61 terminal_ansi_cyan: Some(rgba(0xebbcbaff).into()),
62 terminal_ansi_white: Some(rgba(0xe0def4ff).into()),
63 ..Default::default()
64 },
65 status: StatusColorsRefinement {
66 deleted: Some(rgba(0xeb6f92ff).into()),
67 error: Some(rgba(0xeb6f92ff).into()),
68 hidden: Some(rgba(0x908caaff).into()),
69 hint: Some(rgba(0x908caaff).into()),
70 warning: Some(rgba(0xf6c177ff).into()),
71 ..Default::default()
72 },
73 syntax: Some(UserSyntaxTheme {
74 highlights: vec![
75 (
76 "attribute".into(),
77 UserHighlightStyle {
78 color: Some(rgba(0xc4a7e7ff).into()),
79 font_style: Some(UserFontStyle::Italic),
80 ..Default::default()
81 },
82 ),
83 (
84 "boolean".into(),
85 UserHighlightStyle {
86 color: Some(rgba(0xebbcbaff).into()),
87 ..Default::default()
88 },
89 ),
90 (
91 "comment".into(),
92 UserHighlightStyle {
93 color: Some(rgba(0x6e6a86ff).into()),
94 font_style: Some(UserFontStyle::Italic),
95 ..Default::default()
96 },
97 ),
98 (
99 "comment.doc".into(),
100 UserHighlightStyle {
101 color: Some(rgba(0x6e6a86ff).into()),
102 font_style: Some(UserFontStyle::Italic),
103 ..Default::default()
104 },
105 ),
106 (
107 "function".into(),
108 UserHighlightStyle {
109 color: Some(rgba(0xebbcbaff).into()),
110 ..Default::default()
111 },
112 ),
113 (
114 "keyword".into(),
115 UserHighlightStyle {
116 color: Some(rgba(0x31748fff).into()),
117 ..Default::default()
118 },
119 ),
120 (
121 "label".into(),
122 UserHighlightStyle {
123 color: Some(rgba(0xebbcbaff).into()),
124 ..Default::default()
125 },
126 ),
127 (
128 "number".into(),
129 UserHighlightStyle {
130 color: Some(rgba(0xebbcbaff).into()),
131 ..Default::default()
132 },
133 ),
134 (
135 "punctuation".into(),
136 UserHighlightStyle {
137 color: Some(rgba(0x6e6a86ff).into()),
138 ..Default::default()
139 },
140 ),
141 (
142 "punctuation.bracket".into(),
143 UserHighlightStyle {
144 color: Some(rgba(0x6e6a86ff).into()),
145 ..Default::default()
146 },
147 ),
148 (
149 "punctuation.delimiter".into(),
150 UserHighlightStyle {
151 color: Some(rgba(0x6e6a86ff).into()),
152 ..Default::default()
153 },
154 ),
155 (
156 "punctuation.list_marker".into(),
157 UserHighlightStyle {
158 color: Some(rgba(0x6e6a86ff).into()),
159 ..Default::default()
160 },
161 ),
162 (
163 "punctuation.special".into(),
164 UserHighlightStyle {
165 color: Some(rgba(0x6e6a86ff).into()),
166 ..Default::default()
167 },
168 ),
169 (
170 "string".into(),
171 UserHighlightStyle {
172 color: Some(rgba(0xf6c177ff).into()),
173 ..Default::default()
174 },
175 ),
176 (
177 "string.escape".into(),
178 UserHighlightStyle {
179 color: Some(rgba(0xf6c177ff).into()),
180 ..Default::default()
181 },
182 ),
183 (
184 "string.regex".into(),
185 UserHighlightStyle {
186 color: Some(rgba(0xf6c177ff).into()),
187 ..Default::default()
188 },
189 ),
190 (
191 "string.special".into(),
192 UserHighlightStyle {
193 color: Some(rgba(0xf6c177ff).into()),
194 ..Default::default()
195 },
196 ),
197 (
198 "string.special.symbol".into(),
199 UserHighlightStyle {
200 color: Some(rgba(0xf6c177ff).into()),
201 ..Default::default()
202 },
203 ),
204 (
205 "tag".into(),
206 UserHighlightStyle {
207 color: Some(rgba(0x9ccfd8ff).into()),
208 ..Default::default()
209 },
210 ),
211 (
212 "text.literal".into(),
213 UserHighlightStyle {
214 color: Some(rgba(0xf6c177ff).into()),
215 ..Default::default()
216 },
217 ),
218 (
219 "title".into(),
220 UserHighlightStyle {
221 color: Some(rgba(0xebbcbaff).into()),
222 ..Default::default()
223 },
224 ),
225 (
226 "type".into(),
227 UserHighlightStyle {
228 color: Some(rgba(0x9ccfd8ff).into()),
229 ..Default::default()
230 },
231 ),
232 (
233 "variable".into(),
234 UserHighlightStyle {
235 color: Some(rgba(0xc4a7e7ff).into()),
236 ..Default::default()
237 },
238 ),
239 (
240 "variable.special".into(),
241 UserHighlightStyle {
242 color: Some(rgba(0xe0def4ff).into()),
243 ..Default::default()
244 },
245 ),
246 ],
247 }),
248 },
249 },
250 UserTheme {
251 name: "Rose Pine Moon".into(),
252 appearance: Appearance::Dark,
253 styles: UserThemeStylesRefinement {
254 colors: ThemeColorsRefinement {
255 border: Some(rgba(0x000000ff).into()),
256 border_variant: Some(rgba(0x000000ff).into()),
257 border_focused: Some(rgba(0x817c9c26).into()),
258 border_selected: Some(rgba(0x000000ff).into()),
259 border_transparent: Some(rgba(0x000000ff).into()),
260 border_disabled: Some(rgba(0x000000ff).into()),
261 elevated_surface_background: Some(rgba(0x2a273fff).into()),
262 surface_background: Some(rgba(0x2a273fff).into()),
263 background: Some(rgba(0x232136ff).into()),
264 element_background: Some(rgba(0xea9a97ff).into()),
265 element_hover: Some(rgba(0x817c9c14).into()),
266 element_selected: Some(rgba(0x817c9c26).into()),
267 drop_target_background: Some(rgba(0x2a273fff).into()),
268 ghost_element_hover: Some(rgba(0x817c9c14).into()),
269 text: Some(rgba(0xe0def4ff).into()),
270 status_bar_background: Some(rgba(0x232136ff).into()),
271 title_bar_background: Some(rgba(0x232136ff).into()),
272 toolbar_background: Some(rgba(0x2a273fff).into()),
273 tab_bar_background: Some(rgba(0x2a273fff).into()),
274 tab_inactive_background: Some(rgba(0x000000ff).into()),
275 tab_active_background: Some(rgba(0x817c9c14).into()),
276 editor_background: Some(rgba(0x232136ff).into()),
277 editor_gutter_background: Some(rgba(0x232136ff).into()),
278 editor_line_number: Some(rgba(0x908caaff).into()),
279 editor_active_line_number: Some(rgba(0xe0def4ff).into()),
280 terminal_ansi_bright_black: Some(rgba(0x908caaff).into()),
281 terminal_ansi_bright_red: Some(rgba(0xeb6f92ff).into()),
282 terminal_ansi_bright_green: Some(rgba(0x3e8fb0ff).into()),
283 terminal_ansi_bright_yellow: Some(rgba(0xf6c177ff).into()),
284 terminal_ansi_bright_blue: Some(rgba(0x9ccfd8ff).into()),
285 terminal_ansi_bright_magenta: Some(rgba(0xc4a7e7ff).into()),
286 terminal_ansi_bright_cyan: Some(rgba(0xea9a97ff).into()),
287 terminal_ansi_bright_white: Some(rgba(0xe0def4ff).into()),
288 terminal_ansi_black: Some(rgba(0x393552ff).into()),
289 terminal_ansi_red: Some(rgba(0xeb6f92ff).into()),
290 terminal_ansi_green: Some(rgba(0x3e8fb0ff).into()),
291 terminal_ansi_yellow: Some(rgba(0xf6c177ff).into()),
292 terminal_ansi_blue: Some(rgba(0x9ccfd8ff).into()),
293 terminal_ansi_magenta: Some(rgba(0xc4a7e7ff).into()),
294 terminal_ansi_cyan: Some(rgba(0xea9a97ff).into()),
295 terminal_ansi_white: Some(rgba(0xe0def4ff).into()),
296 ..Default::default()
297 },
298 status: StatusColorsRefinement {
299 deleted: Some(rgba(0xeb6f92ff).into()),
300 error: Some(rgba(0xeb6f92ff).into()),
301 hidden: Some(rgba(0x908caaff).into()),
302 hint: Some(rgba(0x908caaff).into()),
303 warning: Some(rgba(0xf6c177ff).into()),
304 ..Default::default()
305 },
306 syntax: Some(UserSyntaxTheme {
307 highlights: vec![
308 (
309 "attribute".into(),
310 UserHighlightStyle {
311 color: Some(rgba(0xc4a7e7ff).into()),
312 font_style: Some(UserFontStyle::Italic),
313 ..Default::default()
314 },
315 ),
316 (
317 "boolean".into(),
318 UserHighlightStyle {
319 color: Some(rgba(0xea9a97ff).into()),
320 ..Default::default()
321 },
322 ),
323 (
324 "comment".into(),
325 UserHighlightStyle {
326 color: Some(rgba(0x6e6a86ff).into()),
327 font_style: Some(UserFontStyle::Italic),
328 ..Default::default()
329 },
330 ),
331 (
332 "comment.doc".into(),
333 UserHighlightStyle {
334 color: Some(rgba(0x6e6a86ff).into()),
335 font_style: Some(UserFontStyle::Italic),
336 ..Default::default()
337 },
338 ),
339 (
340 "function".into(),
341 UserHighlightStyle {
342 color: Some(rgba(0xea9a97ff).into()),
343 ..Default::default()
344 },
345 ),
346 (
347 "keyword".into(),
348 UserHighlightStyle {
349 color: Some(rgba(0x3e8fb0ff).into()),
350 ..Default::default()
351 },
352 ),
353 (
354 "label".into(),
355 UserHighlightStyle {
356 color: Some(rgba(0xea9a97ff).into()),
357 ..Default::default()
358 },
359 ),
360 (
361 "number".into(),
362 UserHighlightStyle {
363 color: Some(rgba(0xea9a97ff).into()),
364 ..Default::default()
365 },
366 ),
367 (
368 "punctuation".into(),
369 UserHighlightStyle {
370 color: Some(rgba(0x6e6a86ff).into()),
371 ..Default::default()
372 },
373 ),
374 (
375 "punctuation.bracket".into(),
376 UserHighlightStyle {
377 color: Some(rgba(0x6e6a86ff).into()),
378 ..Default::default()
379 },
380 ),
381 (
382 "punctuation.delimiter".into(),
383 UserHighlightStyle {
384 color: Some(rgba(0x6e6a86ff).into()),
385 ..Default::default()
386 },
387 ),
388 (
389 "punctuation.list_marker".into(),
390 UserHighlightStyle {
391 color: Some(rgba(0x6e6a86ff).into()),
392 ..Default::default()
393 },
394 ),
395 (
396 "punctuation.special".into(),
397 UserHighlightStyle {
398 color: Some(rgba(0x6e6a86ff).into()),
399 ..Default::default()
400 },
401 ),
402 (
403 "string".into(),
404 UserHighlightStyle {
405 color: Some(rgba(0xf6c177ff).into()),
406 ..Default::default()
407 },
408 ),
409 (
410 "string.escape".into(),
411 UserHighlightStyle {
412 color: Some(rgba(0xf6c177ff).into()),
413 ..Default::default()
414 },
415 ),
416 (
417 "string.regex".into(),
418 UserHighlightStyle {
419 color: Some(rgba(0xf6c177ff).into()),
420 ..Default::default()
421 },
422 ),
423 (
424 "string.special".into(),
425 UserHighlightStyle {
426 color: Some(rgba(0xf6c177ff).into()),
427 ..Default::default()
428 },
429 ),
430 (
431 "string.special.symbol".into(),
432 UserHighlightStyle {
433 color: Some(rgba(0xf6c177ff).into()),
434 ..Default::default()
435 },
436 ),
437 (
438 "tag".into(),
439 UserHighlightStyle {
440 color: Some(rgba(0x9ccfd8ff).into()),
441 ..Default::default()
442 },
443 ),
444 (
445 "text.literal".into(),
446 UserHighlightStyle {
447 color: Some(rgba(0xf6c177ff).into()),
448 ..Default::default()
449 },
450 ),
451 (
452 "title".into(),
453 UserHighlightStyle {
454 color: Some(rgba(0xea9a97ff).into()),
455 ..Default::default()
456 },
457 ),
458 (
459 "type".into(),
460 UserHighlightStyle {
461 color: Some(rgba(0x9ccfd8ff).into()),
462 ..Default::default()
463 },
464 ),
465 (
466 "variable".into(),
467 UserHighlightStyle {
468 color: Some(rgba(0xc4a7e7ff).into()),
469 ..Default::default()
470 },
471 ),
472 (
473 "variable.special".into(),
474 UserHighlightStyle {
475 color: Some(rgba(0xe0def4ff).into()),
476 ..Default::default()
477 },
478 ),
479 ],
480 }),
481 },
482 },
483 UserTheme {
484 name: "Rose Pine Dawn".into(),
485 appearance: Appearance::Light,
486 styles: UserThemeStylesRefinement {
487 colors: ThemeColorsRefinement {
488 border: Some(rgba(0x000000ff).into()),
489 border_variant: Some(rgba(0x000000ff).into()),
490 border_focused: Some(rgba(0x6e6a8614).into()),
491 border_selected: Some(rgba(0x000000ff).into()),
492 border_transparent: Some(rgba(0x000000ff).into()),
493 border_disabled: Some(rgba(0x000000ff).into()),
494 elevated_surface_background: Some(rgba(0xfffaf3ff).into()),
495 surface_background: Some(rgba(0xfffaf3ff).into()),
496 background: Some(rgba(0xfaf4edff).into()),
497 element_background: Some(rgba(0xd7827eff).into()),
498 element_hover: Some(rgba(0x6e6a860d).into()),
499 element_selected: Some(rgba(0x6e6a8614).into()),
500 drop_target_background: Some(rgba(0xfffaf3ff).into()),
501 ghost_element_hover: Some(rgba(0x6e6a860d).into()),
502 text: Some(rgba(0x575279ff).into()),
503 status_bar_background: Some(rgba(0xfaf4edff).into()),
504 title_bar_background: Some(rgba(0xfaf4edff).into()),
505 toolbar_background: Some(rgba(0xfffaf3ff).into()),
506 tab_bar_background: Some(rgba(0xfffaf3ff).into()),
507 tab_inactive_background: Some(rgba(0x000000ff).into()),
508 tab_active_background: Some(rgba(0x6e6a860d).into()),
509 editor_background: Some(rgba(0xfaf4edff).into()),
510 editor_gutter_background: Some(rgba(0xfaf4edff).into()),
511 editor_line_number: Some(rgba(0x797593ff).into()),
512 editor_active_line_number: Some(rgba(0x575279ff).into()),
513 terminal_ansi_bright_black: Some(rgba(0x797593ff).into()),
514 terminal_ansi_bright_red: Some(rgba(0xb4637aff).into()),
515 terminal_ansi_bright_green: Some(rgba(0x286983ff).into()),
516 terminal_ansi_bright_yellow: Some(rgba(0xea9d34ff).into()),
517 terminal_ansi_bright_blue: Some(rgba(0x56949fff).into()),
518 terminal_ansi_bright_magenta: Some(rgba(0x907aa9ff).into()),
519 terminal_ansi_bright_cyan: Some(rgba(0xd7827eff).into()),
520 terminal_ansi_bright_white: Some(rgba(0x575279ff).into()),
521 terminal_ansi_black: Some(rgba(0xf2e9e1ff).into()),
522 terminal_ansi_red: Some(rgba(0xb4637aff).into()),
523 terminal_ansi_green: Some(rgba(0x286983ff).into()),
524 terminal_ansi_yellow: Some(rgba(0xea9d34ff).into()),
525 terminal_ansi_blue: Some(rgba(0x56949fff).into()),
526 terminal_ansi_magenta: Some(rgba(0x907aa9ff).into()),
527 terminal_ansi_cyan: Some(rgba(0xd7827eff).into()),
528 terminal_ansi_white: Some(rgba(0x575279ff).into()),
529 ..Default::default()
530 },
531 status: StatusColorsRefinement {
532 deleted: Some(rgba(0xb4637aff).into()),
533 error: Some(rgba(0xb4637aff).into()),
534 hidden: Some(rgba(0x797593ff).into()),
535 hint: Some(rgba(0x797593ff).into()),
536 warning: Some(rgba(0xea9d34ff).into()),
537 ..Default::default()
538 },
539 syntax: Some(UserSyntaxTheme {
540 highlights: vec![
541 (
542 "attribute".into(),
543 UserHighlightStyle {
544 color: Some(rgba(0x907aa9ff).into()),
545 font_style: Some(UserFontStyle::Italic),
546 ..Default::default()
547 },
548 ),
549 (
550 "boolean".into(),
551 UserHighlightStyle {
552 color: Some(rgba(0xd7827eff).into()),
553 ..Default::default()
554 },
555 ),
556 (
557 "comment".into(),
558 UserHighlightStyle {
559 color: Some(rgba(0x9893a5ff).into()),
560 font_style: Some(UserFontStyle::Italic),
561 ..Default::default()
562 },
563 ),
564 (
565 "comment.doc".into(),
566 UserHighlightStyle {
567 color: Some(rgba(0x9893a5ff).into()),
568 font_style: Some(UserFontStyle::Italic),
569 ..Default::default()
570 },
571 ),
572 (
573 "function".into(),
574 UserHighlightStyle {
575 color: Some(rgba(0xd7827eff).into()),
576 ..Default::default()
577 },
578 ),
579 (
580 "keyword".into(),
581 UserHighlightStyle {
582 color: Some(rgba(0x286983ff).into()),
583 ..Default::default()
584 },
585 ),
586 (
587 "label".into(),
588 UserHighlightStyle {
589 color: Some(rgba(0xd7827eff).into()),
590 ..Default::default()
591 },
592 ),
593 (
594 "number".into(),
595 UserHighlightStyle {
596 color: Some(rgba(0xd7827eff).into()),
597 ..Default::default()
598 },
599 ),
600 (
601 "punctuation".into(),
602 UserHighlightStyle {
603 color: Some(rgba(0x9893a5ff).into()),
604 ..Default::default()
605 },
606 ),
607 (
608 "punctuation.bracket".into(),
609 UserHighlightStyle {
610 color: Some(rgba(0x9893a5ff).into()),
611 ..Default::default()
612 },
613 ),
614 (
615 "punctuation.delimiter".into(),
616 UserHighlightStyle {
617 color: Some(rgba(0x9893a5ff).into()),
618 ..Default::default()
619 },
620 ),
621 (
622 "punctuation.list_marker".into(),
623 UserHighlightStyle {
624 color: Some(rgba(0x9893a5ff).into()),
625 ..Default::default()
626 },
627 ),
628 (
629 "punctuation.special".into(),
630 UserHighlightStyle {
631 color: Some(rgba(0x9893a5ff).into()),
632 ..Default::default()
633 },
634 ),
635 (
636 "string".into(),
637 UserHighlightStyle {
638 color: Some(rgba(0xea9d34ff).into()),
639 ..Default::default()
640 },
641 ),
642 (
643 "string.escape".into(),
644 UserHighlightStyle {
645 color: Some(rgba(0xea9d34ff).into()),
646 ..Default::default()
647 },
648 ),
649 (
650 "string.regex".into(),
651 UserHighlightStyle {
652 color: Some(rgba(0xea9d34ff).into()),
653 ..Default::default()
654 },
655 ),
656 (
657 "string.special".into(),
658 UserHighlightStyle {
659 color: Some(rgba(0xea9d34ff).into()),
660 ..Default::default()
661 },
662 ),
663 (
664 "string.special.symbol".into(),
665 UserHighlightStyle {
666 color: Some(rgba(0xea9d34ff).into()),
667 ..Default::default()
668 },
669 ),
670 (
671 "tag".into(),
672 UserHighlightStyle {
673 color: Some(rgba(0x56949fff).into()),
674 ..Default::default()
675 },
676 ),
677 (
678 "text.literal".into(),
679 UserHighlightStyle {
680 color: Some(rgba(0xea9d34ff).into()),
681 ..Default::default()
682 },
683 ),
684 (
685 "title".into(),
686 UserHighlightStyle {
687 color: Some(rgba(0xd7827eff).into()),
688 ..Default::default()
689 },
690 ),
691 (
692 "type".into(),
693 UserHighlightStyle {
694 color: Some(rgba(0x56949fff).into()),
695 ..Default::default()
696 },
697 ),
698 (
699 "variable".into(),
700 UserHighlightStyle {
701 color: Some(rgba(0x907aa9ff).into()),
702 ..Default::default()
703 },
704 ),
705 (
706 "variable.special".into(),
707 UserHighlightStyle {
708 color: Some(rgba(0x575279ff).into()),
709 ..Default::default()
710 },
711 ),
712 ],
713 }),
714 },
715 },
716 ],
717 }
718}