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