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