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