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