egui_code_editor/themes/
ayu.rs

1use super::ColorTheme;
2
3impl ColorTheme {
4    /// Author: André Sá <enkodr@outlook.com>
5    ///
6    /// Based on the AYU theme colors from <https://github.com/dempfi/ayu>
7    pub const AYU: ColorTheme = ColorTheme {
8        name: "Ayu",
9        dark: false,
10        bg: "#fafafa",
11        cursor: "#5c6166",      // foreground
12        selection: "#fa8d3e",   // orange
13        comments: "#828c9a",    // gray
14        functions: "#ffaa33",   // yellow
15        keywords: "#fa8d3e",    // orange
16        literals: "#5c6166",    // foreground
17        numerics: "#a37acc",    // magenta
18        punctuation: "#5c6166", // foreground
19        strs: "#86b300",        // green
20        types: "#399ee6",       // blue
21        special: "#f07171",     // red
22    };
23
24    pub const AYU_MIRAGE: ColorTheme = ColorTheme {
25        name: "Ayu Mirage",
26        dark: true,
27        bg: "#1f2430",
28        cursor: "#cccac2",      // foreground
29        selection: "#ffad66",   // orange
30        comments: "#565b66",    // gray
31        functions: "#ffcc77",   // yellow
32        keywords: "#ffad66",    // orange
33        literals: "#cccac2",    // foreground
34        numerics: "#dfbfff",    // magenta
35        punctuation: "#cccac2", // foreground
36        strs: "#d5ff80",        // green
37        types: "#73d0ff",       // blue
38        special: "#f28779",     // red
39    };
40
41    pub const AYU_DARK: ColorTheme = ColorTheme {
42        name: "Ayu Dark",
43        dark: true,
44        bg: "#0f1419",
45        cursor: "#bfbdb6",      // foreground
46        selection: "#ffad66",   // orange
47        comments: "#5c6773",    // gray
48        functions: "#e6b450",   // yellow
49        keywords: "#ffad66",    // orange
50        literals: "#bfbdb6",    // foreground
51        numerics: "#dfbfff",    // magenta
52        punctuation: "#bfbdb6", // foreground
53        strs: "#aad94c",        // green
54        types: "#59c2ff",       // blue
55        special: "#f28779",     // red
56    };
57}