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