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