1use std::num::ParseIntError;
2
3use gpui2::{hsla, Hsla, Rgba};
4
5use crate::{
6 colors::{GitStatusColors, PlayerColor, PlayerColors, StatusColors, SystemColors, ThemeColors},
7 scale::{ColorScaleSet, ColorScales},
8 syntax::SyntaxTheme,
9 ColorScale,
10};
11
12fn neutral() -> ColorScaleSet {
13 slate()
14}
15
16impl Default for SystemColors {
17 fn default() -> Self {
18 Self {
19 transparent: hsla(0.0, 0.0, 0.0, 0.0),
20 mac_os_traffic_light_red: hsla(0.0139, 0.79, 0.65, 1.0),
21 mac_os_traffic_light_yellow: hsla(0.114, 0.88, 0.63, 1.0),
22 mac_os_traffic_light_green: hsla(0.313, 0.49, 0.55, 1.0),
23 }
24 }
25}
26
27impl Default for StatusColors {
28 fn default() -> Self {
29 Self {
30 conflict: red().dark(11).into(),
31 created: grass().dark(11).into(),
32 deleted: red().dark(11).into(),
33 error: red().dark(11).into(),
34 hidden: neutral().dark(11).into(),
35 ignored: neutral().dark(11).into(),
36 info: blue().dark(11).into(),
37 modified: yellow().dark(11).into(),
38 renamed: blue().dark(11).into(),
39 success: grass().dark(11).into(),
40 warning: yellow().dark(11).into(),
41 }
42 }
43}
44
45impl Default for GitStatusColors {
46 fn default() -> Self {
47 Self {
48 conflict: orange().dark(11),
49 created: grass().dark(11),
50 deleted: red().dark(11),
51 ignored: neutral().dark(11),
52 modified: yellow().dark(11),
53 renamed: blue().dark(11),
54 }
55 }
56}
57
58impl Default for PlayerColors {
59 fn default() -> Self {
60 Self(vec![
61 PlayerColor {
62 cursor: hsla(0.0, 0.0, 0.0, 0.0),
63 background: hsla(0.0, 0.0, 0.0, 0.0),
64 selection: hsla(0.0, 0.0, 0.0, 0.0),
65 },
66 PlayerColor {
67 cursor: hsla(0.0, 0.0, 0.0, 0.0),
68 background: hsla(0.0, 0.0, 0.0, 0.0),
69 selection: hsla(0.0, 0.0, 0.0, 0.0),
70 },
71 PlayerColor {
72 cursor: hsla(0.0, 0.0, 0.0, 0.0),
73 background: hsla(0.0, 0.0, 0.0, 0.0),
74 selection: hsla(0.0, 0.0, 0.0, 0.0),
75 },
76 PlayerColor {
77 cursor: hsla(0.0, 0.0, 0.0, 0.0),
78 background: hsla(0.0, 0.0, 0.0, 0.0),
79 selection: hsla(0.0, 0.0, 0.0, 0.0),
80 },
81 ])
82 }
83}
84
85impl SyntaxTheme {
86 pub fn default_light() -> Self {
87 Self {
88 highlights: vec![
89 ("attribute".into(), cyan().light(11).into()),
90 ("boolean".into(), tomato().light(11).into()),
91 ("comment".into(), neutral().light(11).into()),
92 ("comment.doc".into(), iris().light(12).into()),
93 ("constant".into(), red().light(7).into()),
94 ("constructor".into(), red().light(7).into()),
95 ("embedded".into(), red().light(7).into()),
96 ("emphasis".into(), red().light(7).into()),
97 ("emphasis.strong".into(), red().light(7).into()),
98 ("enum".into(), red().light(7).into()),
99 ("function".into(), red().light(7).into()),
100 ("hint".into(), red().light(7).into()),
101 ("keyword".into(), orange().light(11).into()),
102 ("label".into(), red().light(7).into()),
103 ("link_text".into(), red().light(7).into()),
104 ("link_uri".into(), red().light(7).into()),
105 ("number".into(), red().light(7).into()),
106 ("operator".into(), red().light(7).into()),
107 ("predictive".into(), red().light(7).into()),
108 ("preproc".into(), red().light(7).into()),
109 ("primary".into(), red().light(7).into()),
110 ("property".into(), red().light(7).into()),
111 ("punctuation".into(), neutral().light(11).into()),
112 ("punctuation.bracket".into(), neutral().light(11).into()),
113 ("punctuation.delimiter".into(), neutral().light(11).into()),
114 ("punctuation.list_marker".into(), blue().light(11).into()),
115 ("punctuation.special".into(), red().light(7).into()),
116 ("string".into(), jade().light(11).into()),
117 ("string.escape".into(), red().light(7).into()),
118 ("string.regex".into(), tomato().light(11).into()),
119 ("string.special".into(), red().light(7).into()),
120 ("string.special.symbol".into(), red().light(7).into()),
121 ("tag".into(), red().light(7).into()),
122 ("text.literal".into(), red().light(7).into()),
123 ("title".into(), red().light(7).into()),
124 ("type".into(), red().light(7).into()),
125 ("variable".into(), red().light(7).into()),
126 ("variable.special".into(), red().light(7).into()),
127 ("variant".into(), red().light(7).into()),
128 ],
129 }
130 }
131
132 pub fn default_dark() -> Self {
133 Self {
134 highlights: vec![
135 ("attribute".into(), cyan().dark(11).into()),
136 ("boolean".into(), tomato().dark(11).into()),
137 ("comment".into(), neutral().dark(11).into()),
138 ("comment.doc".into(), iris().dark(12).into()),
139 ("constant".into(), red().dark(7).into()),
140 ("constructor".into(), red().dark(7).into()),
141 ("embedded".into(), red().dark(7).into()),
142 ("emphasis".into(), red().dark(7).into()),
143 ("emphasis.strong".into(), red().dark(7).into()),
144 ("enum".into(), red().dark(7).into()),
145 ("function".into(), red().dark(7).into()),
146 ("hint".into(), red().dark(7).into()),
147 ("keyword".into(), orange().dark(11).into()),
148 ("label".into(), red().dark(7).into()),
149 ("link_text".into(), red().dark(7).into()),
150 ("link_uri".into(), red().dark(7).into()),
151 ("number".into(), red().dark(7).into()),
152 ("operator".into(), red().dark(7).into()),
153 ("predictive".into(), red().dark(7).into()),
154 ("preproc".into(), red().dark(7).into()),
155 ("primary".into(), red().dark(7).into()),
156 ("property".into(), red().dark(7).into()),
157 ("punctuation".into(), neutral().dark(11).into()),
158 ("punctuation.bracket".into(), neutral().dark(11).into()),
159 ("punctuation.delimiter".into(), neutral().dark(11).into()),
160 ("punctuation.list_marker".into(), blue().dark(11).into()),
161 ("punctuation.special".into(), red().dark(7).into()),
162 ("string".into(), jade().dark(11).into()),
163 ("string.escape".into(), red().dark(7).into()),
164 ("string.regex".into(), tomato().dark(11).into()),
165 ("string.special".into(), red().dark(7).into()),
166 ("string.special.symbol".into(), red().dark(7).into()),
167 ("tag".into(), red().dark(7).into()),
168 ("text.literal".into(), red().dark(7).into()),
169 ("title".into(), red().dark(7).into()),
170 ("type".into(), red().dark(7).into()),
171 ("variable".into(), red().dark(7).into()),
172 ("variable.special".into(), red().dark(7).into()),
173 ("variant".into(), red().dark(7).into()),
174 ],
175 }
176 }
177}
178
179impl ThemeColors {
180 pub fn default_light() -> Self {
181 let system = SystemColors::default();
182
183 Self {
184 border: neutral().light(6).into(),
185 border_variant: neutral().light(5).into(),
186 border_focused: blue().light(5).into(),
187 border_transparent: system.transparent,
188 elevated_surface: neutral().light(2).into(),
189 surface: neutral().light(2).into(),
190 background: neutral().light(1).into(),
191 element: neutral().light(3).into(),
192 element_hover: neutral().light(4).into(),
193 element_active: neutral().light(5).into(),
194 element_selected: neutral().light(5).into(),
195 element_disabled: neutral().light_alpha(3).into(),
196 element_placeholder: neutral().light(11).into(),
197 element_drop_target: blue().light_alpha(2).into(),
198 ghost_element: system.transparent,
199 ghost_element_hover: neutral().light(4).into(),
200 ghost_element_active: neutral().light(5).into(),
201 ghost_element_selected: neutral().light(5).into(),
202 ghost_element_disabled: neutral().light_alpha(3).into(),
203 text: neutral().light(12).into(),
204 text_muted: neutral().light(11).into(),
205 text_placeholder: neutral().light(10).into(),
206 text_disabled: neutral().light(9).into(),
207 text_accent: blue().light(11).into(),
208 icon: neutral().light(11).into(),
209 icon_muted: neutral().light(10).into(),
210 icon_disabled: neutral().light(9).into(),
211 icon_placeholder: neutral().light(10).into(),
212 icon_accent: blue().light(11).into(),
213 status_bar: neutral().light(2).into(),
214 title_bar: neutral().light(2).into(),
215 toolbar: neutral().light(1).into(),
216 tab_bar: neutral().light(2).into(),
217 tab_active: neutral().light(1).into(),
218 tab_inactive: neutral().light(2).into(),
219 editor: neutral().light(1).into(),
220 editor_subheader: neutral().light(2).into(),
221 editor_active_line: neutral().light_alpha(3).into(),
222 }
223 }
224
225 pub fn default_dark() -> Self {
226 let system = SystemColors::default();
227
228 Self {
229 border: neutral().dark(6).into(),
230 border_variant: neutral().dark(5).into(),
231 border_focused: blue().dark(5).into(),
232 border_transparent: system.transparent,
233 elevated_surface: neutral().dark(2).into(),
234 surface: neutral().dark(2).into(),
235 background: neutral().dark(1).into(),
236 element: neutral().dark(3).into(),
237 element_hover: neutral().dark(4).into(),
238 element_active: neutral().dark(5).into(),
239 element_selected: neutral().dark(5).into(),
240 element_disabled: neutral().dark_alpha(3).into(),
241 element_placeholder: neutral().dark(11).into(),
242 element_drop_target: blue().dark_alpha(2).into(),
243 ghost_element: system.transparent,
244 ghost_element_hover: neutral().dark(4).into(),
245 ghost_element_active: neutral().dark(5).into(),
246 ghost_element_selected: neutral().dark(5).into(),
247 ghost_element_disabled: neutral().dark_alpha(3).into(),
248 text: neutral().dark(12).into(),
249 text_muted: neutral().dark(11).into(),
250 text_placeholder: neutral().dark(10).into(),
251 text_disabled: neutral().dark(9).into(),
252 text_accent: blue().dark(11).into(),
253 icon: neutral().dark(11).into(),
254 icon_muted: neutral().dark(10).into(),
255 icon_disabled: neutral().dark(9).into(),
256 icon_placeholder: neutral().dark(10).into(),
257 icon_accent: blue().dark(11).into(),
258 status_bar: neutral().dark(2).into(),
259 title_bar: neutral().dark(2).into(),
260 toolbar: neutral().dark(1).into(),
261 tab_bar: neutral().dark(2).into(),
262 tab_active: neutral().dark(1).into(),
263 tab_inactive: neutral().dark(2).into(),
264 editor: neutral().dark(1).into(),
265 editor_subheader: neutral().dark(2).into(),
266 editor_active_line: neutral().dark_alpha(3).into(),
267 }
268 }
269}
270
271type StaticColorScale = [&'static str; 12];
272
273struct StaticColorScaleSet {
274 scale: &'static str,
275 light: StaticColorScale,
276 light_alpha: StaticColorScale,
277 dark: StaticColorScale,
278 dark_alpha: StaticColorScale,
279}
280
281impl TryFrom<StaticColorScaleSet> for ColorScaleSet {
282 type Error = ParseIntError;
283
284 fn try_from(value: StaticColorScaleSet) -> Result<Self, Self::Error> {
285 fn to_color_scale(scale: StaticColorScale) -> Result<ColorScale, ParseIntError> {
286 scale
287 .into_iter()
288 .map(|color| Rgba::try_from(color).map(Hsla::from))
289 .collect::<Result<Vec<_>, _>>()
290 .map(ColorScale::from_iter)
291 }
292
293 Ok(Self::new(
294 value.scale,
295 to_color_scale(value.light)?,
296 to_color_scale(value.light_alpha)?,
297 to_color_scale(value.dark)?,
298 to_color_scale(value.dark_alpha)?,
299 ))
300 }
301}
302
303pub fn default_color_scales() -> ColorScales {
304 ColorScales {
305 gray: gray(),
306 mauve: mauve(),
307 slate: slate(),
308 sage: sage(),
309 olive: olive(),
310 sand: sand(),
311 gold: gold(),
312 bronze: bronze(),
313 brown: brown(),
314 yellow: yellow(),
315 amber: amber(),
316 orange: orange(),
317 tomato: tomato(),
318 red: red(),
319 ruby: ruby(),
320 crimson: crimson(),
321 pink: pink(),
322 plum: plum(),
323 purple: purple(),
324 violet: violet(),
325 iris: iris(),
326 indigo: indigo(),
327 blue: blue(),
328 cyan: cyan(),
329 teal: teal(),
330 jade: jade(),
331 green: green(),
332 grass: grass(),
333 lime: lime(),
334 mint: mint(),
335 sky: sky(),
336 black: black(),
337 white: white(),
338 }
339}
340
341fn gray() -> ColorScaleSet {
342 StaticColorScaleSet {
343 scale: "Gray",
344 light: [
345 "#fcfcfcff",
346 "#f9f9f9ff",
347 "#f0f0f0ff",
348 "#e8e8e8ff",
349 "#e0e0e0ff",
350 "#d9d9d9ff",
351 "#cececeff",
352 "#bbbbbbff",
353 "#8d8d8dff",
354 "#838383ff",
355 "#646464ff",
356 "#202020ff",
357 ],
358 light_alpha: [
359 "#00000003",
360 "#00000006",
361 "#0000000f",
362 "#00000017",
363 "#0000001f",
364 "#00000026",
365 "#00000031",
366 "#00000044",
367 "#00000072",
368 "#0000007c",
369 "#0000009b",
370 "#000000df",
371 ],
372 dark: [
373 "#111111ff",
374 "#191919ff",
375 "#222222ff",
376 "#2a2a2aff",
377 "#313131ff",
378 "#3a3a3aff",
379 "#484848ff",
380 "#606060ff",
381 "#6e6e6eff",
382 "#7b7b7bff",
383 "#b4b4b4ff",
384 "#eeeeeeff",
385 ],
386 dark_alpha: [
387 "#00000000",
388 "#ffffff09",
389 "#ffffff12",
390 "#ffffff1b",
391 "#ffffff22",
392 "#ffffff2c",
393 "#ffffff3b",
394 "#ffffff55",
395 "#ffffff64",
396 "#ffffff72",
397 "#ffffffaf",
398 "#ffffffed",
399 ],
400 }
401 .try_into()
402 .unwrap()
403}
404
405fn mauve() -> ColorScaleSet {
406 StaticColorScaleSet {
407 scale: "Mauve",
408 light: [
409 "#fdfcfdff",
410 "#faf9fbff",
411 "#f2eff3ff",
412 "#eae7ecff",
413 "#e3dfe6ff",
414 "#dbd8e0ff",
415 "#d0cdd7ff",
416 "#bcbac7ff",
417 "#8e8c99ff",
418 "#84828eff",
419 "#65636dff",
420 "#211f26ff",
421 ],
422 light_alpha: [
423 "#55005503",
424 "#2b005506",
425 "#30004010",
426 "#20003618",
427 "#20003820",
428 "#14003527",
429 "#10003332",
430 "#08003145",
431 "#05001d73",
432 "#0500197d",
433 "#0400119c",
434 "#020008e0",
435 ],
436 dark: [
437 "#121113ff",
438 "#1a191bff",
439 "#232225ff",
440 "#2b292dff",
441 "#323035ff",
442 "#3c393fff",
443 "#49474eff",
444 "#625f69ff",
445 "#6f6d78ff",
446 "#7c7a85ff",
447 "#b5b2bcff",
448 "#eeeef0ff",
449 ],
450 dark_alpha: [
451 "#00000000",
452 "#f5f4f609",
453 "#ebeaf814",
454 "#eee5f81d",
455 "#efe6fe25",
456 "#f1e6fd30",
457 "#eee9ff40",
458 "#eee7ff5d",
459 "#eae6fd6e",
460 "#ece9fd7c",
461 "#f5f1ffb7",
462 "#fdfdffef",
463 ],
464 }
465 .try_into()
466 .unwrap()
467}
468
469fn slate() -> ColorScaleSet {
470 StaticColorScaleSet {
471 scale: "Slate",
472 light: [
473 "#fcfcfdff",
474 "#f9f9fbff",
475 "#f0f0f3ff",
476 "#e8e8ecff",
477 "#e0e1e6ff",
478 "#d9d9e0ff",
479 "#cdced6ff",
480 "#b9bbc6ff",
481 "#8b8d98ff",
482 "#80838dff",
483 "#60646cff",
484 "#1c2024ff",
485 ],
486 light_alpha: [
487 "#00005503",
488 "#00005506",
489 "#0000330f",
490 "#00002d17",
491 "#0009321f",
492 "#00002f26",
493 "#00062e32",
494 "#00083046",
495 "#00051d74",
496 "#00071b7f",
497 "#0007149f",
498 "#000509e3",
499 ],
500 dark: [
501 "#111113ff",
502 "#18191bff",
503 "#212225ff",
504 "#272a2dff",
505 "#2e3135ff",
506 "#363a3fff",
507 "#43484eff",
508 "#5a6169ff",
509 "#696e77ff",
510 "#777b84ff",
511 "#b0b4baff",
512 "#edeef0ff",
513 ],
514 dark_alpha: [
515 "#00000000",
516 "#d8f4f609",
517 "#ddeaf814",
518 "#d3edf81d",
519 "#d9edfe25",
520 "#d6ebfd30",
521 "#d9edff40",
522 "#d9edff5d",
523 "#dfebfd6d",
524 "#e5edfd7b",
525 "#f1f7feb5",
526 "#fcfdffef",
527 ],
528 }
529 .try_into()
530 .unwrap()
531}
532
533fn sage() -> ColorScaleSet {
534 StaticColorScaleSet {
535 scale: "Sage",
536 light: [
537 "#fbfdfcff",
538 "#f7f9f8ff",
539 "#eef1f0ff",
540 "#e6e9e8ff",
541 "#dfe2e0ff",
542 "#d7dad9ff",
543 "#cbcfcdff",
544 "#b8bcbaff",
545 "#868e8bff",
546 "#7c8481ff",
547 "#5f6563ff",
548 "#1a211eff",
549 ],
550 light_alpha: [
551 "#00804004",
552 "#00402008",
553 "#002d1e11",
554 "#001f1519",
555 "#00180820",
556 "#00140d28",
557 "#00140a34",
558 "#000f0847",
559 "#00110b79",
560 "#00100a83",
561 "#000a07a0",
562 "#000805e5",
563 ],
564 dark: [
565 "#101211ff",
566 "#171918ff",
567 "#202221ff",
568 "#272a29ff",
569 "#2e3130ff",
570 "#373b39ff",
571 "#444947ff",
572 "#5b625fff",
573 "#63706bff",
574 "#717d79ff",
575 "#adb5b2ff",
576 "#eceeedff",
577 ],
578 dark_alpha: [
579 "#00000000",
580 "#f0f2f108",
581 "#f3f5f412",
582 "#f2fefd1a",
583 "#f1fbfa22",
584 "#edfbf42d",
585 "#edfcf73c",
586 "#ebfdf657",
587 "#dffdf266",
588 "#e5fdf674",
589 "#f4fefbb0",
590 "#fdfffeed",
591 ],
592 }
593 .try_into()
594 .unwrap()
595}
596
597fn olive() -> ColorScaleSet {
598 StaticColorScaleSet {
599 scale: "Olive",
600 light: [
601 "#fcfdfcff",
602 "#f8faf8ff",
603 "#eff1efff",
604 "#e7e9e7ff",
605 "#dfe2dfff",
606 "#d7dad7ff",
607 "#cccfccff",
608 "#b9bcb8ff",
609 "#898e87ff",
610 "#7f847dff",
611 "#60655fff",
612 "#1d211cff",
613 ],
614 light_alpha: [
615 "#00550003",
616 "#00490007",
617 "#00200010",
618 "#00160018",
619 "#00180020",
620 "#00140028",
621 "#000f0033",
622 "#040f0047",
623 "#050f0078",
624 "#040e0082",
625 "#020a00a0",
626 "#010600e3",
627 ],
628 dark: [
629 "#111210ff",
630 "#181917ff",
631 "#212220ff",
632 "#282a27ff",
633 "#2f312eff",
634 "#383a36ff",
635 "#454843ff",
636 "#5c625bff",
637 "#687066ff",
638 "#767d74ff",
639 "#afb5adff",
640 "#eceeecff",
641 ],
642 dark_alpha: [
643 "#00000000",
644 "#f1f2f008",
645 "#f4f5f312",
646 "#f3fef21a",
647 "#f2fbf122",
648 "#f4faed2c",
649 "#f2fced3b",
650 "#edfdeb57",
651 "#ebfde766",
652 "#f0fdec74",
653 "#f6fef4b0",
654 "#fdfffded",
655 ],
656 }
657 .try_into()
658 .unwrap()
659}
660
661fn sand() -> ColorScaleSet {
662 StaticColorScaleSet {
663 scale: "Sand",
664 light: [
665 "#fdfdfcff",
666 "#f9f9f8ff",
667 "#f1f0efff",
668 "#e9e8e6ff",
669 "#e2e1deff",
670 "#dad9d6ff",
671 "#cfcecaff",
672 "#bcbbb5ff",
673 "#8d8d86ff",
674 "#82827cff",
675 "#63635eff",
676 "#21201cff",
677 ],
678 light_alpha: [
679 "#55550003",
680 "#25250007",
681 "#20100010",
682 "#1f150019",
683 "#1f180021",
684 "#19130029",
685 "#19140035",
686 "#1915014a",
687 "#0f0f0079",
688 "#0c0c0083",
689 "#080800a1",
690 "#060500e3",
691 ],
692 dark: [
693 "#111110ff",
694 "#191918ff",
695 "#222221ff",
696 "#2a2a28ff",
697 "#31312eff",
698 "#3b3a37ff",
699 "#494844ff",
700 "#62605bff",
701 "#6f6d66ff",
702 "#7c7b74ff",
703 "#b5b3adff",
704 "#eeeeecff",
705 ],
706 dark_alpha: [
707 "#00000000",
708 "#f4f4f309",
709 "#f6f6f513",
710 "#fefef31b",
711 "#fbfbeb23",
712 "#fffaed2d",
713 "#fffbed3c",
714 "#fff9eb57",
715 "#fffae965",
716 "#fffdee73",
717 "#fffcf4b0",
718 "#fffffded",
719 ],
720 }
721 .try_into()
722 .unwrap()
723}
724
725fn gold() -> ColorScaleSet {
726 StaticColorScaleSet {
727 scale: "Gold",
728 light: [
729 "#fdfdfcff",
730 "#faf9f2ff",
731 "#f2f0e7ff",
732 "#eae6dbff",
733 "#e1dccfff",
734 "#d8d0bfff",
735 "#cbc0aaff",
736 "#b9a88dff",
737 "#978365ff",
738 "#8c7a5eff",
739 "#71624bff",
740 "#3b352bff",
741 ],
742 light_alpha: [
743 "#55550003",
744 "#9d8a000d",
745 "#75600018",
746 "#6b4e0024",
747 "#60460030",
748 "#64440040",
749 "#63420055",
750 "#633d0072",
751 "#5332009a",
752 "#492d00a1",
753 "#362100b4",
754 "#130c00d4",
755 ],
756 dark: [
757 "#121211ff",
758 "#1b1a17ff",
759 "#24231fff",
760 "#2d2b26ff",
761 "#38352eff",
762 "#444039ff",
763 "#544f46ff",
764 "#696256ff",
765 "#978365ff",
766 "#a39073ff",
767 "#cbb99fff",
768 "#e8e2d9ff",
769 ],
770 dark_alpha: [
771 "#91911102",
772 "#f9e29d0b",
773 "#f8ecbb15",
774 "#ffeec41e",
775 "#feecc22a",
776 "#feebcb37",
777 "#ffedcd48",
778 "#fdeaca5f",
779 "#ffdba690",
780 "#fedfb09d",
781 "#fee7c6c8",
782 "#fef7ede7",
783 ],
784 }
785 .try_into()
786 .unwrap()
787}
788
789fn bronze() -> ColorScaleSet {
790 StaticColorScaleSet {
791 scale: "Bronze",
792 light: [
793 "#fdfcfcff",
794 "#fdf7f5ff",
795 "#f6edeaff",
796 "#efe4dfff",
797 "#e7d9d3ff",
798 "#dfcdc5ff",
799 "#d3bcb3ff",
800 "#c2a499ff",
801 "#a18072ff",
802 "#957468ff",
803 "#7d5e54ff",
804 "#43302bff",
805 ],
806 light_alpha: [
807 "#55000003",
808 "#cc33000a",
809 "#92250015",
810 "#80280020",
811 "#7423002c",
812 "#7324003a",
813 "#6c1f004c",
814 "#671c0066",
815 "#551a008d",
816 "#4c150097",
817 "#3d0f00ab",
818 "#1d0600d4",
819 ],
820 dark: [
821 "#141110ff",
822 "#1c1917ff",
823 "#262220ff",
824 "#302a27ff",
825 "#3b3330ff",
826 "#493e3aff",
827 "#5a4c47ff",
828 "#6f5f58ff",
829 "#a18072ff",
830 "#ae8c7eff",
831 "#d4b3a5ff",
832 "#ede0d9ff",
833 ],
834 dark_alpha: [
835 "#d1110004",
836 "#fbbc910c",
837 "#faceb817",
838 "#facdb622",
839 "#ffd2c12d",
840 "#ffd1c03c",
841 "#fdd0c04f",
842 "#ffd6c565",
843 "#fec7b09b",
844 "#fecab5a9",
845 "#ffd7c6d1",
846 "#fff1e9ec",
847 ],
848 }
849 .try_into()
850 .unwrap()
851}
852
853fn brown() -> ColorScaleSet {
854 StaticColorScaleSet {
855 scale: "Brown",
856 light: [
857 "#fefdfcff",
858 "#fcf9f6ff",
859 "#f6eee7ff",
860 "#f0e4d9ff",
861 "#ebdacaff",
862 "#e4cdb7ff",
863 "#dcbc9fff",
864 "#cea37eff",
865 "#ad7f58ff",
866 "#a07553ff",
867 "#815e46ff",
868 "#3e332eff",
869 ],
870 light_alpha: [
871 "#aa550003",
872 "#aa550009",
873 "#a04b0018",
874 "#9b4a0026",
875 "#9f4d0035",
876 "#a04e0048",
877 "#a34e0060",
878 "#9f4a0081",
879 "#823c00a7",
880 "#723300ac",
881 "#522100b9",
882 "#140600d1",
883 ],
884 dark: [
885 "#12110fff",
886 "#1c1816ff",
887 "#28211dff",
888 "#322922ff",
889 "#3e3128ff",
890 "#4d3c2fff",
891 "#614a39ff",
892 "#7c5f46ff",
893 "#ad7f58ff",
894 "#b88c67ff",
895 "#dbb594ff",
896 "#f2e1caff",
897 ],
898 dark_alpha: [
899 "#91110002",
900 "#fba67c0c",
901 "#fcb58c19",
902 "#fbbb8a24",
903 "#fcb88931",
904 "#fdba8741",
905 "#ffbb8856",
906 "#ffbe8773",
907 "#feb87da8",
908 "#ffc18cb3",
909 "#fed1aad9",
910 "#feecd4f2",
911 ],
912 }
913 .try_into()
914 .unwrap()
915}
916
917fn yellow() -> ColorScaleSet {
918 StaticColorScaleSet {
919 scale: "Yellow",
920 light: [
921 "#fdfdf9ff",
922 "#fefce9ff",
923 "#fffab8ff",
924 "#fff394ff",
925 "#ffe770ff",
926 "#f3d768ff",
927 "#e4c767ff",
928 "#d5ae39ff",
929 "#ffe629ff",
930 "#ffdc00ff",
931 "#9e6c00ff",
932 "#473b1fff",
933 ],
934 light_alpha: [
935 "#aaaa0006",
936 "#f4dd0016",
937 "#ffee0047",
938 "#ffe3016b",
939 "#ffd5008f",
940 "#ebbc0097",
941 "#d2a10098",
942 "#c99700c6",
943 "#ffe100d6",
944 "#ffdc00ff",
945 "#9e6c00ff",
946 "#2e2000e0",
947 ],
948 dark: [
949 "#14120bff",
950 "#1b180fff",
951 "#2d2305ff",
952 "#362b00ff",
953 "#433500ff",
954 "#524202ff",
955 "#665417ff",
956 "#836a21ff",
957 "#ffe629ff",
958 "#ffff57ff",
959 "#f5e147ff",
960 "#f6eeb4ff",
961 ],
962 dark_alpha: [
963 "#d1510004",
964 "#f9b4000b",
965 "#ffaa001e",
966 "#fdb70028",
967 "#febb0036",
968 "#fec40046",
969 "#fdcb225c",
970 "#fdca327b",
971 "#ffe629ff",
972 "#ffff57ff",
973 "#fee949f5",
974 "#fef6baf6",
975 ],
976 }
977 .try_into()
978 .unwrap()
979}
980
981fn amber() -> ColorScaleSet {
982 StaticColorScaleSet {
983 scale: "Amber",
984 light: [
985 "#fefdfbff",
986 "#fefbe9ff",
987 "#fff7c2ff",
988 "#ffee9cff",
989 "#fbe577ff",
990 "#f3d673ff",
991 "#e9c162ff",
992 "#e2a336ff",
993 "#ffc53dff",
994 "#ffba18ff",
995 "#ab6400ff",
996 "#4f3422ff",
997 ],
998 light_alpha: [
999 "#c0800004",
1000 "#f4d10016",
1001 "#ffde003d",
1002 "#ffd40063",
1003 "#f8cf0088",
1004 "#eab5008c",
1005 "#dc9b009d",
1006 "#da8a00c9",
1007 "#ffb300c2",
1008 "#ffb300e7",
1009 "#ab6400ff",
1010 "#341500dd",
1011 ],
1012 dark: [
1013 "#16120cff",
1014 "#1d180fff",
1015 "#302008ff",
1016 "#3f2700ff",
1017 "#4d3000ff",
1018 "#5c3d05ff",
1019 "#714f19ff",
1020 "#8f6424ff",
1021 "#ffc53dff",
1022 "#ffd60aff",
1023 "#ffca16ff",
1024 "#ffe7b3ff",
1025 ],
1026 dark_alpha: [
1027 "#e63c0006",
1028 "#fd9b000d",
1029 "#fa820022",
1030 "#fc820032",
1031 "#fd8b0041",
1032 "#fd9b0051",
1033 "#ffab2567",
1034 "#ffae3587",
1035 "#ffc53dff",
1036 "#ffd60aff",
1037 "#ffca16ff",
1038 "#ffe7b3ff",
1039 ],
1040 }
1041 .try_into()
1042 .unwrap()
1043}
1044
1045fn orange() -> ColorScaleSet {
1046 StaticColorScaleSet {
1047 scale: "Orange",
1048 light: [
1049 "#fefcfbff",
1050 "#fff7edff",
1051 "#ffefd6ff",
1052 "#ffdfb5ff",
1053 "#ffd19aff",
1054 "#ffc182ff",
1055 "#f5ae73ff",
1056 "#ec9455ff",
1057 "#f76b15ff",
1058 "#ef5f00ff",
1059 "#cc4e00ff",
1060 "#582d1dff",
1061 ],
1062 light_alpha: [
1063 "#c0400004",
1064 "#ff8e0012",
1065 "#ff9c0029",
1066 "#ff91014a",
1067 "#ff8b0065",
1068 "#ff81007d",
1069 "#ed6c008c",
1070 "#e35f00aa",
1071 "#f65e00ea",
1072 "#ef5f00ff",
1073 "#cc4e00ff",
1074 "#431200e2",
1075 ],
1076 dark: [
1077 "#17120eff",
1078 "#1e160fff",
1079 "#331e0bff",
1080 "#462100ff",
1081 "#562800ff",
1082 "#66350cff",
1083 "#7e451dff",
1084 "#a35829ff",
1085 "#f76b15ff",
1086 "#ff801fff",
1087 "#ffa057ff",
1088 "#ffe0c2ff",
1089 ],
1090 dark_alpha: [
1091 "#ec360007",
1092 "#fe6d000e",
1093 "#fb6a0025",
1094 "#ff590039",
1095 "#ff61004a",
1096 "#fd75045c",
1097 "#ff832c75",
1098 "#fe84389d",
1099 "#fe6d15f7",
1100 "#ff801fff",
1101 "#ffa057ff",
1102 "#ffe0c2ff",
1103 ],
1104 }
1105 .try_into()
1106 .unwrap()
1107}
1108
1109fn tomato() -> ColorScaleSet {
1110 StaticColorScaleSet {
1111 scale: "Tomato",
1112 light: [
1113 "#fffcfcff",
1114 "#fff8f7ff",
1115 "#feebe7ff",
1116 "#ffdcd3ff",
1117 "#ffcdc2ff",
1118 "#fdbdafff",
1119 "#f5a898ff",
1120 "#ec8e7bff",
1121 "#e54d2eff",
1122 "#dd4425ff",
1123 "#d13415ff",
1124 "#5c271fff",
1125 ],
1126 light_alpha: [
1127 "#ff000003",
1128 "#ff200008",
1129 "#f52b0018",
1130 "#ff35002c",
1131 "#ff2e003d",
1132 "#f92d0050",
1133 "#e7280067",
1134 "#db250084",
1135 "#df2600d1",
1136 "#d72400da",
1137 "#cd2200ea",
1138 "#460900e0",
1139 ],
1140 dark: [
1141 "#181111ff",
1142 "#1f1513ff",
1143 "#391714ff",
1144 "#4e1511ff",
1145 "#5e1c16ff",
1146 "#6e2920ff",
1147 "#853a2dff",
1148 "#ac4d39ff",
1149 "#e54d2eff",
1150 "#ec6142ff",
1151 "#ff977dff",
1152 "#fbd3cbff",
1153 ],
1154 dark_alpha: [
1155 "#f1121208",
1156 "#ff55330f",
1157 "#ff35232b",
1158 "#fd201142",
1159 "#fe332153",
1160 "#ff4f3864",
1161 "#fd644a7d",
1162 "#fe6d4ea7",
1163 "#fe5431e4",
1164 "#ff6847eb",
1165 "#ff977dff",
1166 "#ffd6cefb",
1167 ],
1168 }
1169 .try_into()
1170 .unwrap()
1171}
1172
1173fn red() -> ColorScaleSet {
1174 StaticColorScaleSet {
1175 scale: "Red",
1176 light: [
1177 "#fffcfcff",
1178 "#fff7f7ff",
1179 "#feebecff",
1180 "#ffdbdcff",
1181 "#ffcdceff",
1182 "#fdbdbeff",
1183 "#f4a9aaff",
1184 "#eb8e90ff",
1185 "#e5484dff",
1186 "#dc3e42ff",
1187 "#ce2c31ff",
1188 "#641723ff",
1189 ],
1190 light_alpha: [
1191 "#ff000003",
1192 "#ff000008",
1193 "#f3000d14",
1194 "#ff000824",
1195 "#ff000632",
1196 "#f8000442",
1197 "#df000356",
1198 "#d2000571",
1199 "#db0007b7",
1200 "#d10005c1",
1201 "#c40006d3",
1202 "#55000de8",
1203 ],
1204 dark: [
1205 "#191111ff",
1206 "#201314ff",
1207 "#3b1219ff",
1208 "#500f1cff",
1209 "#611623ff",
1210 "#72232dff",
1211 "#8c333aff",
1212 "#b54548ff",
1213 "#e5484dff",
1214 "#ec5d5eff",
1215 "#ff9592ff",
1216 "#ffd1d9ff",
1217 ],
1218 dark_alpha: [
1219 "#f4121209",
1220 "#f22f3e11",
1221 "#ff173f2d",
1222 "#fe0a3b44",
1223 "#ff204756",
1224 "#ff3e5668",
1225 "#ff536184",
1226 "#ff5d61b0",
1227 "#fe4e54e4",
1228 "#ff6465eb",
1229 "#ff9592ff",
1230 "#ffd1d9ff",
1231 ],
1232 }
1233 .try_into()
1234 .unwrap()
1235}
1236
1237fn ruby() -> ColorScaleSet {
1238 StaticColorScaleSet {
1239 scale: "Ruby",
1240 light: [
1241 "#fffcfdff",
1242 "#fff7f8ff",
1243 "#feeaedff",
1244 "#ffdce1ff",
1245 "#ffced6ff",
1246 "#f8bfc8ff",
1247 "#efacb8ff",
1248 "#e592a3ff",
1249 "#e54666ff",
1250 "#dc3b5dff",
1251 "#ca244dff",
1252 "#64172bff",
1253 ],
1254 light_alpha: [
1255 "#ff005503",
1256 "#ff002008",
1257 "#f3002515",
1258 "#ff002523",
1259 "#ff002a31",
1260 "#e4002440",
1261 "#ce002553",
1262 "#c300286d",
1263 "#db002cb9",
1264 "#d2002cc4",
1265 "#c10030db",
1266 "#550016e8",
1267 ],
1268 dark: [
1269 "#191113ff",
1270 "#1e1517ff",
1271 "#3a141eff",
1272 "#4e1325ff",
1273 "#5e1a2eff",
1274 "#6f2539ff",
1275 "#883447ff",
1276 "#b3445aff",
1277 "#e54666ff",
1278 "#ec5a72ff",
1279 "#ff949dff",
1280 "#fed2e1ff",
1281 ],
1282 dark_alpha: [
1283 "#f4124a09",
1284 "#fe5a7f0e",
1285 "#ff235d2c",
1286 "#fd195e42",
1287 "#fe2d6b53",
1288 "#ff447665",
1289 "#ff577d80",
1290 "#ff5c7cae",
1291 "#fe4c70e4",
1292 "#ff617beb",
1293 "#ff949dff",
1294 "#ffd3e2fe",
1295 ],
1296 }
1297 .try_into()
1298 .unwrap()
1299}
1300
1301fn crimson() -> ColorScaleSet {
1302 StaticColorScaleSet {
1303 scale: "Crimson",
1304 light: [
1305 "#fffcfdff",
1306 "#fef7f9ff",
1307 "#ffe9f0ff",
1308 "#fedce7ff",
1309 "#faceddff",
1310 "#f3bed1ff",
1311 "#eaacc3ff",
1312 "#e093b2ff",
1313 "#e93d82ff",
1314 "#df3478ff",
1315 "#cb1d63ff",
1316 "#621639ff",
1317 ],
1318 light_alpha: [
1319 "#ff005503",
1320 "#e0004008",
1321 "#ff005216",
1322 "#f8005123",
1323 "#e5004f31",
1324 "#d0004b41",
1325 "#bf004753",
1326 "#b6004a6c",
1327 "#e2005bc2",
1328 "#d70056cb",
1329 "#c4004fe2",
1330 "#530026e9",
1331 ],
1332 dark: [
1333 "#191114ff",
1334 "#201318ff",
1335 "#381525ff",
1336 "#4d122fff",
1337 "#5c1839ff",
1338 "#6d2545ff",
1339 "#873356ff",
1340 "#b0436eff",
1341 "#e93d82ff",
1342 "#ee518aff",
1343 "#ff92adff",
1344 "#fdd3e8ff",
1345 ],
1346 dark_alpha: [
1347 "#f4126709",
1348 "#f22f7a11",
1349 "#fe2a8b2a",
1350 "#fd158741",
1351 "#fd278f51",
1352 "#fe459763",
1353 "#fd559b7f",
1354 "#fe5b9bab",
1355 "#fe418de8",
1356 "#ff5693ed",
1357 "#ff92adff",
1358 "#ffd5eafd",
1359 ],
1360 }
1361 .try_into()
1362 .unwrap()
1363}
1364
1365fn pink() -> ColorScaleSet {
1366 StaticColorScaleSet {
1367 scale: "Pink",
1368 light: [
1369 "#fffcfeff",
1370 "#fef7fbff",
1371 "#fee9f5ff",
1372 "#fbdcefff",
1373 "#f6cee7ff",
1374 "#efbfddff",
1375 "#e7acd0ff",
1376 "#dd93c2ff",
1377 "#d6409fff",
1378 "#cf3897ff",
1379 "#c2298aff",
1380 "#651249ff",
1381 ],
1382 light_alpha: [
1383 "#ff00aa03",
1384 "#e0008008",
1385 "#f4008c16",
1386 "#e2008b23",
1387 "#d1008331",
1388 "#c0007840",
1389 "#b6006f53",
1390 "#af006f6c",
1391 "#c8007fbf",
1392 "#c2007ac7",
1393 "#b60074d6",
1394 "#59003bed",
1395 ],
1396 dark: [
1397 "#191117ff",
1398 "#21121dff",
1399 "#37172fff",
1400 "#4b143dff",
1401 "#591c47ff",
1402 "#692955ff",
1403 "#833869ff",
1404 "#a84885ff",
1405 "#d6409fff",
1406 "#de51a8ff",
1407 "#ff8dccff",
1408 "#fdd1eaff",
1409 ],
1410 dark_alpha: [
1411 "#f412bc09",
1412 "#f420bb12",
1413 "#fe37cc29",
1414 "#fc1ec43f",
1415 "#fd35c24e",
1416 "#fd51c75f",
1417 "#fd62c87b",
1418 "#ff68c8a2",
1419 "#fe49bcd4",
1420 "#ff5cc0dc",
1421 "#ff8dccff",
1422 "#ffd3ecfd",
1423 ],
1424 }
1425 .try_into()
1426 .unwrap()
1427}
1428
1429fn plum() -> ColorScaleSet {
1430 StaticColorScaleSet {
1431 scale: "Plum",
1432 light: [
1433 "#fefcffff",
1434 "#fdf7fdff",
1435 "#fbebfbff",
1436 "#f7def8ff",
1437 "#f2d1f3ff",
1438 "#e9c2ecff",
1439 "#deade3ff",
1440 "#cf91d8ff",
1441 "#ab4abaff",
1442 "#a144afff",
1443 "#953ea3ff",
1444 "#53195dff",
1445 ],
1446 light_alpha: [
1447 "#aa00ff03",
1448 "#c000c008",
1449 "#cc00cc14",
1450 "#c200c921",
1451 "#b700bd2e",
1452 "#a400b03d",
1453 "#9900a852",
1454 "#9000a56e",
1455 "#89009eb5",
1456 "#7f0092bb",
1457 "#730086c1",
1458 "#40004be6",
1459 ],
1460 dark: [
1461 "#181118ff",
1462 "#201320ff",
1463 "#351a35ff",
1464 "#451d47ff",
1465 "#512454ff",
1466 "#5e3061ff",
1467 "#734079ff",
1468 "#92549cff",
1469 "#ab4abaff",
1470 "#b658c4ff",
1471 "#e796f3ff",
1472 "#f4d4f4ff",
1473 ],
1474 dark_alpha: [
1475 "#f112f108",
1476 "#f22ff211",
1477 "#fd4cfd27",
1478 "#f646ff3a",
1479 "#f455ff48",
1480 "#f66dff56",
1481 "#f07cfd70",
1482 "#ee84ff95",
1483 "#e961feb6",
1484 "#ed70ffc0",
1485 "#f19cfef3",
1486 "#feddfef4",
1487 ],
1488 }
1489 .try_into()
1490 .unwrap()
1491}
1492
1493fn purple() -> ColorScaleSet {
1494 StaticColorScaleSet {
1495 scale: "Purple",
1496 light: [
1497 "#fefcfeff",
1498 "#fbf7feff",
1499 "#f7edfeff",
1500 "#f2e2fcff",
1501 "#ead5f9ff",
1502 "#e0c4f4ff",
1503 "#d1afecff",
1504 "#be93e4ff",
1505 "#8e4ec6ff",
1506 "#8347b9ff",
1507 "#8145b5ff",
1508 "#402060ff",
1509 ],
1510 light_alpha: [
1511 "#aa00aa03",
1512 "#8000e008",
1513 "#8e00f112",
1514 "#8d00e51d",
1515 "#8000db2a",
1516 "#7a01d03b",
1517 "#6d00c350",
1518 "#6600c06c",
1519 "#5c00adb1",
1520 "#53009eb8",
1521 "#52009aba",
1522 "#250049df",
1523 ],
1524 dark: [
1525 "#18111bff",
1526 "#1e1523ff",
1527 "#301c3bff",
1528 "#3d224eff",
1529 "#48295cff",
1530 "#54346bff",
1531 "#664282ff",
1532 "#8457aaff",
1533 "#8e4ec6ff",
1534 "#9a5cd0ff",
1535 "#d19dffff",
1536 "#ecd9faff",
1537 ],
1538 dark_alpha: [
1539 "#b412f90b",
1540 "#b744f714",
1541 "#c150ff2d",
1542 "#bb53fd42",
1543 "#be5cfd51",
1544 "#c16dfd61",
1545 "#c378fd7a",
1546 "#c47effa4",
1547 "#b661ffc2",
1548 "#bc6fffcd",
1549 "#d19dffff",
1550 "#f1ddfffa",
1551 ],
1552 }
1553 .try_into()
1554 .unwrap()
1555}
1556
1557fn violet() -> ColorScaleSet {
1558 StaticColorScaleSet {
1559 scale: "Violet",
1560 light: [
1561 "#fdfcfeff",
1562 "#faf8ffff",
1563 "#f4f0feff",
1564 "#ebe4ffff",
1565 "#e1d9ffff",
1566 "#d4cafeff",
1567 "#c2b5f5ff",
1568 "#aa99ecff",
1569 "#6e56cfff",
1570 "#654dc4ff",
1571 "#6550b9ff",
1572 "#2f265fff",
1573 ],
1574 light_alpha: [
1575 "#5500aa03",
1576 "#4900ff07",
1577 "#4400ee0f",
1578 "#4300ff1b",
1579 "#3600ff26",
1580 "#3100fb35",
1581 "#2d01dd4a",
1582 "#2b00d066",
1583 "#2400b7a9",
1584 "#2300abb2",
1585 "#1f0099af",
1586 "#0b0043d9",
1587 ],
1588 dark: [
1589 "#14121fff",
1590 "#1b1525ff",
1591 "#291f43ff",
1592 "#33255bff",
1593 "#3c2e69ff",
1594 "#473876ff",
1595 "#56468bff",
1596 "#6958adff",
1597 "#6e56cfff",
1598 "#7d66d9ff",
1599 "#baa7ffff",
1600 "#e2ddfeff",
1601 ],
1602 dark_alpha: [
1603 "#4422ff0f",
1604 "#853ff916",
1605 "#8354fe36",
1606 "#7d51fd50",
1607 "#845ffd5f",
1608 "#8f6cfd6d",
1609 "#9879ff83",
1610 "#977dfea8",
1611 "#8668ffcc",
1612 "#9176fed7",
1613 "#baa7ffff",
1614 "#e3defffe",
1615 ],
1616 }
1617 .try_into()
1618 .unwrap()
1619}
1620
1621fn iris() -> ColorScaleSet {
1622 StaticColorScaleSet {
1623 scale: "Iris",
1624 light: [
1625 "#fdfdffff",
1626 "#f8f8ffff",
1627 "#f0f1feff",
1628 "#e6e7ffff",
1629 "#dadcffff",
1630 "#cbcdffff",
1631 "#b8baf8ff",
1632 "#9b9ef0ff",
1633 "#5b5bd6ff",
1634 "#5151cdff",
1635 "#5753c6ff",
1636 "#272962ff",
1637 ],
1638 light_alpha: [
1639 "#0000ff02",
1640 "#0000ff07",
1641 "#0011ee0f",
1642 "#000bff19",
1643 "#000eff25",
1644 "#000aff34",
1645 "#0008e647",
1646 "#0008d964",
1647 "#0000c0a4",
1648 "#0000b6ae",
1649 "#0600abac",
1650 "#000246d8",
1651 ],
1652 dark: [
1653 "#13131eff",
1654 "#171625ff",
1655 "#202248ff",
1656 "#262a65ff",
1657 "#303374ff",
1658 "#3d3e82ff",
1659 "#4a4a95ff",
1660 "#5958b1ff",
1661 "#5b5bd6ff",
1662 "#6e6adeff",
1663 "#b1a9ffff",
1664 "#e0dffeff",
1665 ],
1666 dark_alpha: [
1667 "#3636fe0e",
1668 "#564bf916",
1669 "#525bff3b",
1670 "#4d58ff5a",
1671 "#5b62fd6b",
1672 "#6d6ffd7a",
1673 "#7777fe8e",
1674 "#7b7afeac",
1675 "#6a6afed4",
1676 "#7d79ffdc",
1677 "#b1a9ffff",
1678 "#e1e0fffe",
1679 ],
1680 }
1681 .try_into()
1682 .unwrap()
1683}
1684
1685fn indigo() -> ColorScaleSet {
1686 StaticColorScaleSet {
1687 scale: "Indigo",
1688 light: [
1689 "#fdfdfeff",
1690 "#f7f9ffff",
1691 "#edf2feff",
1692 "#e1e9ffff",
1693 "#d2deffff",
1694 "#c1d0ffff",
1695 "#abbdf9ff",
1696 "#8da4efff",
1697 "#3e63ddff",
1698 "#3358d4ff",
1699 "#3a5bc7ff",
1700 "#1f2d5cff",
1701 ],
1702 light_alpha: [
1703 "#00008002",
1704 "#0040ff08",
1705 "#0047f112",
1706 "#0044ff1e",
1707 "#0044ff2d",
1708 "#003eff3e",
1709 "#0037ed54",
1710 "#0034dc72",
1711 "#0031d2c1",
1712 "#002ec9cc",
1713 "#002bb7c5",
1714 "#001046e0",
1715 ],
1716 dark: [
1717 "#11131fff",
1718 "#141726ff",
1719 "#182449ff",
1720 "#1d2e62ff",
1721 "#253974ff",
1722 "#304384ff",
1723 "#3a4f97ff",
1724 "#435db1ff",
1725 "#3e63ddff",
1726 "#5472e4ff",
1727 "#9eb1ffff",
1728 "#d6e1ffff",
1729 ],
1730 dark_alpha: [
1731 "#1133ff0f",
1732 "#3354fa17",
1733 "#2f62ff3c",
1734 "#3566ff57",
1735 "#4171fd6b",
1736 "#5178fd7c",
1737 "#5a7fff90",
1738 "#5b81feac",
1739 "#4671ffdb",
1740 "#5c7efee3",
1741 "#9eb1ffff",
1742 "#d6e1ffff",
1743 ],
1744 }
1745 .try_into()
1746 .unwrap()
1747}
1748
1749fn blue() -> ColorScaleSet {
1750 StaticColorScaleSet {
1751 scale: "Blue",
1752 light: [
1753 "#fbfdffff",
1754 "#f4faffff",
1755 "#e6f4feff",
1756 "#d5efffff",
1757 "#c2e5ffff",
1758 "#acd8fcff",
1759 "#8ec8f6ff",
1760 "#5eb1efff",
1761 "#0090ffff",
1762 "#0588f0ff",
1763 "#0d74ceff",
1764 "#113264ff",
1765 ],
1766 light_alpha: [
1767 "#0080ff04",
1768 "#008cff0b",
1769 "#008ff519",
1770 "#009eff2a",
1771 "#0093ff3d",
1772 "#0088f653",
1773 "#0083eb71",
1774 "#0084e6a1",
1775 "#0090ffff",
1776 "#0086f0fa",
1777 "#006dcbf2",
1778 "#002359ee",
1779 ],
1780 dark: [
1781 "#0d1520ff",
1782 "#111927ff",
1783 "#0d2847ff",
1784 "#003362ff",
1785 "#004074ff",
1786 "#104d87ff",
1787 "#205d9eff",
1788 "#2870bdff",
1789 "#0090ffff",
1790 "#3b9effff",
1791 "#70b8ffff",
1792 "#c2e6ffff",
1793 ],
1794 dark_alpha: [
1795 "#004df211",
1796 "#1166fb18",
1797 "#0077ff3a",
1798 "#0075ff57",
1799 "#0081fd6b",
1800 "#0f89fd7f",
1801 "#2a91fe98",
1802 "#3094feb9",
1803 "#0090ffff",
1804 "#3b9effff",
1805 "#70b8ffff",
1806 "#c2e6ffff",
1807 ],
1808 }
1809 .try_into()
1810 .unwrap()
1811}
1812
1813fn cyan() -> ColorScaleSet {
1814 StaticColorScaleSet {
1815 scale: "Cyan",
1816 light: [
1817 "#fafdfeff",
1818 "#f2fafbff",
1819 "#def7f9ff",
1820 "#caf1f6ff",
1821 "#b5e9f0ff",
1822 "#9ddde7ff",
1823 "#7dcedcff",
1824 "#3db9cfff",
1825 "#00a2c7ff",
1826 "#0797b9ff",
1827 "#107d98ff",
1828 "#0d3c48ff",
1829 ],
1830 light_alpha: [
1831 "#0099cc05",
1832 "#009db10d",
1833 "#00c2d121",
1834 "#00bcd435",
1835 "#01b4cc4a",
1836 "#00a7c162",
1837 "#009fbb82",
1838 "#00a3c0c2",
1839 "#00a2c7ff",
1840 "#0094b7f8",
1841 "#007491ef",
1842 "#00323ef2",
1843 ],
1844 dark: [
1845 "#0b161aff",
1846 "#101b20ff",
1847 "#082c36ff",
1848 "#003848ff",
1849 "#004558ff",
1850 "#045468ff",
1851 "#12677eff",
1852 "#11809cff",
1853 "#00a2c7ff",
1854 "#23afd0ff",
1855 "#4ccce6ff",
1856 "#b6ecf7ff",
1857 ],
1858 dark_alpha: [
1859 "#0091f70a",
1860 "#02a7f211",
1861 "#00befd28",
1862 "#00baff3b",
1863 "#00befd4d",
1864 "#00c7fd5e",
1865 "#14cdff75",
1866 "#11cfff95",
1867 "#00cfffc3",
1868 "#28d6ffcd",
1869 "#52e1fee5",
1870 "#bbf3fef7",
1871 ],
1872 }
1873 .try_into()
1874 .unwrap()
1875}
1876
1877fn teal() -> ColorScaleSet {
1878 StaticColorScaleSet {
1879 scale: "Teal",
1880 light: [
1881 "#fafefdff",
1882 "#f3fbf9ff",
1883 "#e0f8f3ff",
1884 "#ccf3eaff",
1885 "#b8eae0ff",
1886 "#a1ded2ff",
1887 "#83cdc1ff",
1888 "#53b9abff",
1889 "#12a594ff",
1890 "#0d9b8aff",
1891 "#008573ff",
1892 "#0d3d38ff",
1893 ],
1894 light_alpha: [
1895 "#00cc9905",
1896 "#00aa800c",
1897 "#00c69d1f",
1898 "#00c39633",
1899 "#00b49047",
1900 "#00a6855e",
1901 "#0099807c",
1902 "#009783ac",
1903 "#009e8ced",
1904 "#009684f2",
1905 "#008573ff",
1906 "#00332df2",
1907 ],
1908 dark: [
1909 "#0d1514ff",
1910 "#111c1bff",
1911 "#0d2d2aff",
1912 "#023b37ff",
1913 "#084843ff",
1914 "#145750ff",
1915 "#1c6961ff",
1916 "#207e73ff",
1917 "#12a594ff",
1918 "#0eb39eff",
1919 "#0bd8b6ff",
1920 "#adf0ddff",
1921 ],
1922 dark_alpha: [
1923 "#00deab05",
1924 "#12fbe60c",
1925 "#00ffe61e",
1926 "#00ffe92d",
1927 "#00ffea3b",
1928 "#1cffe84b",
1929 "#2efde85f",
1930 "#32ffe775",
1931 "#13ffe49f",
1932 "#0dffe0ae",
1933 "#0afed5d6",
1934 "#b8ffebef",
1935 ],
1936 }
1937 .try_into()
1938 .unwrap()
1939}
1940
1941fn jade() -> ColorScaleSet {
1942 StaticColorScaleSet {
1943 scale: "Jade",
1944 light: [
1945 "#fbfefdff",
1946 "#f4fbf7ff",
1947 "#e6f7edff",
1948 "#d6f1e3ff",
1949 "#c3e9d7ff",
1950 "#acdec8ff",
1951 "#8bceb6ff",
1952 "#56ba9fff",
1953 "#29a383ff",
1954 "#26997bff",
1955 "#208368ff",
1956 "#1d3b31ff",
1957 ],
1958 light_alpha: [
1959 "#00c08004",
1960 "#00a3460b",
1961 "#00ae4819",
1962 "#00a85129",
1963 "#00a2553c",
1964 "#009a5753",
1965 "#00945f74",
1966 "#00976ea9",
1967 "#00916bd6",
1968 "#008764d9",
1969 "#007152df",
1970 "#002217e2",
1971 ],
1972 dark: [
1973 "#0d1512ff",
1974 "#121c18ff",
1975 "#0f2e22ff",
1976 "#0b3b2cff",
1977 "#114837ff",
1978 "#1b5745ff",
1979 "#246854ff",
1980 "#2a7e68ff",
1981 "#29a383ff",
1982 "#27b08bff",
1983 "#1fd8a4ff",
1984 "#adf0d4ff",
1985 ],
1986 dark_alpha: [
1987 "#00de4505",
1988 "#27fba60c",
1989 "#02f99920",
1990 "#00ffaa2d",
1991 "#11ffb63b",
1992 "#34ffc24b",
1993 "#45fdc75e",
1994 "#48ffcf75",
1995 "#38feca9d",
1996 "#31fec7ab",
1997 "#21fec0d6",
1998 "#b8ffe1ef",
1999 ],
2000 }
2001 .try_into()
2002 .unwrap()
2003}
2004
2005fn green() -> ColorScaleSet {
2006 StaticColorScaleSet {
2007 scale: "Green",
2008 light: [
2009 "#fbfefcff",
2010 "#f4fbf6ff",
2011 "#e6f6ebff",
2012 "#d6f1dfff",
2013 "#c4e8d1ff",
2014 "#adddc0ff",
2015 "#8eceaaff",
2016 "#5bb98bff",
2017 "#30a46cff",
2018 "#2b9a66ff",
2019 "#218358ff",
2020 "#193b2dff",
2021 ],
2022 light_alpha: [
2023 "#00c04004",
2024 "#00a32f0b",
2025 "#00a43319",
2026 "#00a83829",
2027 "#019c393b",
2028 "#00963c52",
2029 "#00914071",
2030 "#00924ba4",
2031 "#008f4acf",
2032 "#008647d4",
2033 "#00713fde",
2034 "#002616e6",
2035 ],
2036 dark: [
2037 "#0e1512ff",
2038 "#121b17ff",
2039 "#132d21ff",
2040 "#113b29ff",
2041 "#174933ff",
2042 "#20573eff",
2043 "#28684aff",
2044 "#2f7c57ff",
2045 "#30a46cff",
2046 "#33b074ff",
2047 "#3dd68cff",
2048 "#b1f1cbff",
2049 ],
2050 dark_alpha: [
2051 "#00de4505",
2052 "#29f99d0b",
2053 "#22ff991e",
2054 "#11ff992d",
2055 "#2bffa23c",
2056 "#44ffaa4b",
2057 "#50fdac5e",
2058 "#54ffad73",
2059 "#44ffa49e",
2060 "#43fea4ab",
2061 "#46fea5d4",
2062 "#bbffd7f0",
2063 ],
2064 }
2065 .try_into()
2066 .unwrap()
2067}
2068
2069fn grass() -> ColorScaleSet {
2070 StaticColorScaleSet {
2071 scale: "Grass",
2072 light: [
2073 "#fbfefbff",
2074 "#f5fbf5ff",
2075 "#e9f6e9ff",
2076 "#daf1dbff",
2077 "#c9e8caff",
2078 "#b2ddb5ff",
2079 "#94ce9aff",
2080 "#65ba74ff",
2081 "#46a758ff",
2082 "#3e9b4fff",
2083 "#2a7e3bff",
2084 "#203c25ff",
2085 ],
2086 light_alpha: [
2087 "#00c00004",
2088 "#0099000a",
2089 "#00970016",
2090 "#009f0725",
2091 "#00930536",
2092 "#008f0a4d",
2093 "#018b0f6b",
2094 "#008d199a",
2095 "#008619b9",
2096 "#007b17c1",
2097 "#006514d5",
2098 "#002006df",
2099 ],
2100 dark: [
2101 "#0e1511ff",
2102 "#141a15ff",
2103 "#1b2a1eff",
2104 "#1d3a24ff",
2105 "#25482dff",
2106 "#2d5736ff",
2107 "#366740ff",
2108 "#3e7949ff",
2109 "#46a758ff",
2110 "#53b365ff",
2111 "#71d083ff",
2112 "#c2f0c2ff",
2113 ],
2114 dark_alpha: [
2115 "#00de1205",
2116 "#5ef7780a",
2117 "#70fe8c1b",
2118 "#57ff802c",
2119 "#68ff8b3b",
2120 "#71ff8f4b",
2121 "#77fd925d",
2122 "#77fd9070",
2123 "#65ff82a1",
2124 "#72ff8dae",
2125 "#89ff9fcd",
2126 "#ceffceef",
2127 ],
2128 }
2129 .try_into()
2130 .unwrap()
2131}
2132
2133fn lime() -> ColorScaleSet {
2134 StaticColorScaleSet {
2135 scale: "Lime",
2136 light: [
2137 "#fcfdfaff",
2138 "#f8faf3ff",
2139 "#eef6d6ff",
2140 "#e2f0bdff",
2141 "#d3e7a6ff",
2142 "#c2da91ff",
2143 "#abc978ff",
2144 "#8db654ff",
2145 "#bdee63ff",
2146 "#b0e64cff",
2147 "#5c7c2fff",
2148 "#37401cff",
2149 ],
2150 light_alpha: [
2151 "#66990005",
2152 "#6b95000c",
2153 "#96c80029",
2154 "#8fc60042",
2155 "#81bb0059",
2156 "#72aa006e",
2157 "#61990087",
2158 "#559200ab",
2159 "#93e4009c",
2160 "#8fdc00b3",
2161 "#375f00d0",
2162 "#1e2900e3",
2163 ],
2164 dark: [
2165 "#11130cff",
2166 "#151a10ff",
2167 "#1f2917ff",
2168 "#29371dff",
2169 "#334423ff",
2170 "#3d522aff",
2171 "#496231ff",
2172 "#577538ff",
2173 "#bdee63ff",
2174 "#d4ff70ff",
2175 "#bde56cff",
2176 "#e3f7baff",
2177 ],
2178 dark_alpha: [
2179 "#11bb0003",
2180 "#78f7000a",
2181 "#9bfd4c1a",
2182 "#a7fe5c29",
2183 "#affe6537",
2184 "#b2fe6d46",
2185 "#b6ff6f57",
2186 "#b6fd6d6c",
2187 "#caff69ed",
2188 "#d4ff70ff",
2189 "#d1fe77e4",
2190 "#e9febff7",
2191 ],
2192 }
2193 .try_into()
2194 .unwrap()
2195}
2196
2197fn mint() -> ColorScaleSet {
2198 StaticColorScaleSet {
2199 scale: "Mint",
2200 light: [
2201 "#f9fefdff",
2202 "#f2fbf9ff",
2203 "#ddf9f2ff",
2204 "#c8f4e9ff",
2205 "#b3ecdeff",
2206 "#9ce0d0ff",
2207 "#7ecfbdff",
2208 "#4cbba5ff",
2209 "#86ead4ff",
2210 "#7de0cbff",
2211 "#027864ff",
2212 "#16433cff",
2213 ],
2214 light_alpha: [
2215 "#00d5aa06",
2216 "#00b18a0d",
2217 "#00d29e22",
2218 "#00cc9937",
2219 "#00c0914c",
2220 "#00b08663",
2221 "#00a17d81",
2222 "#009e7fb3",
2223 "#00d3a579",
2224 "#00c39982",
2225 "#007763fd",
2226 "#00312ae9",
2227 ],
2228 dark: [
2229 "#0e1515ff",
2230 "#0f1b1bff",
2231 "#092c2bff",
2232 "#003a38ff",
2233 "#004744ff",
2234 "#105650ff",
2235 "#1e685fff",
2236 "#277f70ff",
2237 "#86ead4ff",
2238 "#a8f5e5ff",
2239 "#58d5baff",
2240 "#c4f5e1ff",
2241 ],
2242 dark_alpha: [
2243 "#00dede05",
2244 "#00f9f90b",
2245 "#00fff61d",
2246 "#00fff42c",
2247 "#00fff23a",
2248 "#0effeb4a",
2249 "#34fde55e",
2250 "#41ffdf76",
2251 "#92ffe7e9",
2252 "#aefeedf5",
2253 "#67ffded2",
2254 "#cbfee9f5",
2255 ],
2256 }
2257 .try_into()
2258 .unwrap()
2259}
2260
2261fn sky() -> ColorScaleSet {
2262 StaticColorScaleSet {
2263 scale: "Sky",
2264 light: [
2265 "#f9feffff",
2266 "#f1fafdff",
2267 "#e1f6fdff",
2268 "#d1f0faff",
2269 "#bee7f5ff",
2270 "#a9daedff",
2271 "#8dcae3ff",
2272 "#60b3d7ff",
2273 "#7ce2feff",
2274 "#74daf8ff",
2275 "#00749eff",
2276 "#1d3e56ff",
2277 ],
2278 light_alpha: [
2279 "#00d5ff06",
2280 "#00a4db0e",
2281 "#00b3ee1e",
2282 "#00ace42e",
2283 "#00a1d841",
2284 "#0092ca56",
2285 "#0089c172",
2286 "#0085bf9f",
2287 "#00c7fe83",
2288 "#00bcf38b",
2289 "#00749eff",
2290 "#002540e2",
2291 ],
2292 dark: [
2293 "#0d141fff",
2294 "#111a27ff",
2295 "#112840ff",
2296 "#113555ff",
2297 "#154467ff",
2298 "#1b537bff",
2299 "#1f6692ff",
2300 "#197caeff",
2301 "#7ce2feff",
2302 "#a8eeffff",
2303 "#75c7f0ff",
2304 "#c2f3ffff",
2305 ],
2306 dark_alpha: [
2307 "#0044ff0f",
2308 "#1171fb18",
2309 "#1184fc33",
2310 "#128fff49",
2311 "#1c9dfd5d",
2312 "#28a5ff72",
2313 "#2badfe8b",
2314 "#1db2fea9",
2315 "#7ce3fffe",
2316 "#a8eeffff",
2317 "#7cd3ffef",
2318 "#c2f3ffff",
2319 ],
2320 }
2321 .try_into()
2322 .unwrap()
2323}
2324
2325fn black() -> ColorScaleSet {
2326 StaticColorScaleSet {
2327 scale: "Black",
2328 light: [
2329 "#0000000d",
2330 "#0000001a",
2331 "#00000026",
2332 "#00000033",
2333 "#0000004d",
2334 "#00000066",
2335 "#00000080",
2336 "#00000099",
2337 "#000000b3",
2338 "#000000cc",
2339 "#000000e6",
2340 "#000000f2",
2341 ],
2342 light_alpha: [
2343 "#0000000d",
2344 "#0000001a",
2345 "#00000026",
2346 "#00000033",
2347 "#0000004d",
2348 "#00000066",
2349 "#00000080",
2350 "#00000099",
2351 "#000000b3",
2352 "#000000cc",
2353 "#000000e6",
2354 "#000000f2",
2355 ],
2356 dark: [
2357 "#0000000d",
2358 "#0000001a",
2359 "#00000026",
2360 "#00000033",
2361 "#0000004d",
2362 "#00000066",
2363 "#00000080",
2364 "#00000099",
2365 "#000000b3",
2366 "#000000cc",
2367 "#000000e6",
2368 "#000000f2",
2369 ],
2370 dark_alpha: [
2371 "#0000000d",
2372 "#0000001a",
2373 "#00000026",
2374 "#00000033",
2375 "#0000004d",
2376 "#00000066",
2377 "#00000080",
2378 "#00000099",
2379 "#000000b3",
2380 "#000000cc",
2381 "#000000e6",
2382 "#000000f2",
2383 ],
2384 }
2385 .try_into()
2386 .unwrap()
2387}
2388
2389fn white() -> ColorScaleSet {
2390 StaticColorScaleSet {
2391 scale: "White",
2392 light: [
2393 "#ffffff0d",
2394 "#ffffff1a",
2395 "#ffffff26",
2396 "#ffffff33",
2397 "#ffffff4d",
2398 "#ffffff66",
2399 "#ffffff80",
2400 "#ffffff99",
2401 "#ffffffb3",
2402 "#ffffffcc",
2403 "#ffffffe6",
2404 "#fffffff2",
2405 ],
2406 light_alpha: [
2407 "#ffffff0d",
2408 "#ffffff1a",
2409 "#ffffff26",
2410 "#ffffff33",
2411 "#ffffff4d",
2412 "#ffffff66",
2413 "#ffffff80",
2414 "#ffffff99",
2415 "#ffffffb3",
2416 "#ffffffcc",
2417 "#ffffffe6",
2418 "#fffffff2",
2419 ],
2420 dark: [
2421 "#ffffff0d",
2422 "#ffffff1a",
2423 "#ffffff26",
2424 "#ffffff33",
2425 "#ffffff4d",
2426 "#ffffff66",
2427 "#ffffff80",
2428 "#ffffff99",
2429 "#ffffffb3",
2430 "#ffffffcc",
2431 "#ffffffe6",
2432 "#fffffff2",
2433 ],
2434 dark_alpha: [
2435 "#ffffff0d",
2436 "#ffffff1a",
2437 "#ffffff26",
2438 "#ffffff33",
2439 "#ffffff4d",
2440 "#ffffff66",
2441 "#ffffff80",
2442 "#ffffff99",
2443 "#ffffffb3",
2444 "#ffffffcc",
2445 "#ffffffe6",
2446 "#fffffff2",
2447 ],
2448 }
2449 .try_into()
2450 .unwrap()
2451}