egui_code_editor/themes/github.rs
1use super::ColorTheme;
2
3impl ColorTheme {
4 /// Author : OwOSwordsman <owoswordsman@gmail.com>
5 /// An unofficial GitHub theme, generated using colors from: <https://primer.style/primitives/colors>
6 pub const GITHUB_DARK: ColorTheme = ColorTheme {
7 name: "Github Dark",
8 dark: true,
9 bg: "#0d1117", // default
10 cursor: "#d29922", // attention.fg
11 selection: "#0c2d6b", // scale.blue.8
12 comments: "#8b949e", // fg.muted
13 functions: "#d2a8ff", // scale.purple.2
14 keywords: "#ff7b72", // scale.red.3
15 literals: "#c9d1d9", // fg.default
16 numerics: "#79c0ff", // scale.blue.2
17 punctuation: "#c9d1d9", // fg.default
18 strs: "#a5d6ff", // scale.blue.1
19 types: "#ffa657", // scale.orange.2
20 special: "#a5d6ff", // scale.blue.1
21 };
22
23 pub const GITHUB_LIGHT: ColorTheme = ColorTheme {
24 name: "Github Light",
25 dark: false,
26 bg: "#ffffff", // default
27 cursor: "#000000", // invert
28 selection: "#0550ae", // scale.blue.6
29 comments: "#57606a", // fg.muted
30 functions: "#8250df", // done.fg
31 keywords: "#cf222e", // scale.red.5
32 literals: "#24292f", // fg.default
33 numerics: "#0550ae", // scale.blue.6
34 punctuation: "#24292f", // fg.default
35 strs: "#0a3069", // scale.blue.8
36 types: "#953800", // scale.orange.6
37 special: "#a475f9", // scale.purple.4
38 };
39}