ayu_light.rs

  1use gpui2::rgba;
  2
  3use crate::{PlayerTheme, SyntaxTheme, Theme, ThemeMetadata};
  4
  5pub fn ayu_light() -> Theme {
  6    Theme {
  7        metadata: ThemeMetadata {
  8            name: "Ayu Light".into(),
  9            is_light: true,
 10        },
 11        transparent: rgba(0x00000000).into(),
 12        mac_os_traffic_light_red: rgba(0xec695eff).into(),
 13        mac_os_traffic_light_yellow: rgba(0xf4bf4eff).into(),
 14        mac_os_traffic_light_green: rgba(0x61c553ff).into(),
 15        border: rgba(0xcfd1d2ff).into(),
 16        border_variant: rgba(0xcfd1d2ff).into(),
 17        border_focused: rgba(0xc4daf6ff).into(),
 18        border_transparent: rgba(0x00000000).into(),
 19        elevated_surface: rgba(0xdcdddeff).into(),
 20        surface: rgba(0xececedff).into(),
 21        background: rgba(0xdcdddeff).into(),
 22        filled_element: rgba(0xdcdddeff).into(),
 23        filled_element_hover: rgba(0xffffff1e).into(),
 24        filled_element_active: rgba(0xffffff28).into(),
 25        filled_element_selected: rgba(0xdeebfaff).into(),
 26        filled_element_disabled: rgba(0x00000000).into(),
 27        ghost_element: rgba(0x00000000).into(),
 28        ghost_element_hover: rgba(0xffffff14).into(),
 29        ghost_element_active: rgba(0xffffff1e).into(),
 30        ghost_element_selected: rgba(0xdeebfaff).into(),
 31        ghost_element_disabled: rgba(0x00000000).into(),
 32        text: rgba(0x5c6166ff).into(),
 33        text_muted: rgba(0x8b8e92ff).into(),
 34        text_placeholder: rgba(0xef7271ff).into(),
 35        text_disabled: rgba(0xa9acaeff).into(),
 36        text_accent: rgba(0x3b9ee5ff).into(),
 37        icon_muted: rgba(0x8b8e92ff).into(),
 38        syntax: SyntaxTheme {
 39            highlights: vec![
 40                ("string".into(), rgba(0x86b300ff).into()),
 41                ("enum".into(), rgba(0xf98d3fff).into()),
 42                ("comment".into(), rgba(0x787b8099).into()),
 43                ("comment.doc".into(), rgba(0x898d90ff).into()),
 44                ("emphasis".into(), rgba(0x3b9ee5ff).into()),
 45                ("keyword".into(), rgba(0xfa8d3eff).into()),
 46                ("string.regex".into(), rgba(0x4bbf98ff).into()),
 47                ("text.literal".into(), rgba(0xf98d3fff).into()),
 48                ("string.escape".into(), rgba(0x898d90ff).into()),
 49                ("link_text".into(), rgba(0xf98d3fff).into()),
 50                ("punctuation".into(), rgba(0x73777bff).into()),
 51                ("constructor".into(), rgba(0x3b9ee5ff).into()),
 52                ("constant".into(), rgba(0xa37accff).into()),
 53                ("variable".into(), rgba(0x5c6166ff).into()),
 54                ("primary".into(), rgba(0x5c6166ff).into()),
 55                ("emphasis.strong".into(), rgba(0x3b9ee5ff).into()),
 56                ("string.special".into(), rgba(0xe6ba7eff).into()),
 57                ("number".into(), rgba(0xa37accff).into()),
 58                ("preproc".into(), rgba(0x5c6166ff).into()),
 59                ("punctuation.delimiter".into(), rgba(0x73777bff).into()),
 60                ("string.special.symbol".into(), rgba(0xf98d3fff).into()),
 61                ("boolean".into(), rgba(0xa37accff).into()),
 62                ("property".into(), rgba(0x3b9ee5ff).into()),
 63                ("title".into(), rgba(0x5c6166ff).into()),
 64                ("hint".into(), rgba(0x8ca7c2ff).into()),
 65                ("predictive".into(), rgba(0x9eb9d3ff).into()),
 66                ("operator".into(), rgba(0xed9365ff).into()),
 67                ("type".into(), rgba(0x389ee6ff).into()),
 68                ("function".into(), rgba(0xf2ad48ff).into()),
 69                ("variant".into(), rgba(0x3b9ee5ff).into()),
 70                ("label".into(), rgba(0x3b9ee5ff).into()),
 71                ("punctuation.list_marker".into(), rgba(0x73777bff).into()),
 72                ("punctuation.bracket".into(), rgba(0x73777bff).into()),
 73                ("embedded".into(), rgba(0x5c6166ff).into()),
 74                ("punctuation.special".into(), rgba(0xa37accff).into()),
 75                ("attribute".into(), rgba(0x3b9ee5ff).into()),
 76                ("tag".into(), rgba(0x3b9ee5ff).into()),
 77                ("link_uri".into(), rgba(0x85b304ff).into()),
 78            ],
 79        },
 80        status_bar: rgba(0xdcdddeff).into(),
 81        title_bar: rgba(0xdcdddeff).into(),
 82        toolbar: rgba(0xfcfcfcff).into(),
 83        tab_bar: rgba(0xececedff).into(),
 84        editor: rgba(0xfcfcfcff).into(),
 85        editor_subheader: rgba(0xececedff).into(),
 86        editor_active_line: rgba(0xececedff).into(),
 87        terminal: rgba(0xfcfcfcff).into(),
 88        image_fallback_background: rgba(0xdcdddeff).into(),
 89        git_created: rgba(0x85b304ff).into(),
 90        git_modified: rgba(0x3b9ee5ff).into(),
 91        git_deleted: rgba(0xef7271ff).into(),
 92        git_conflict: rgba(0xf1ad49ff).into(),
 93        git_ignored: rgba(0xa9acaeff).into(),
 94        git_renamed: rgba(0xf1ad49ff).into(),
 95        players: [
 96            PlayerTheme {
 97                cursor: rgba(0x3b9ee5ff).into(),
 98                selection: rgba(0x3b9ee53d).into(),
 99            },
100            PlayerTheme {
101                cursor: rgba(0x85b304ff).into(),
102                selection: rgba(0x85b3043d).into(),
103            },
104            PlayerTheme {
105                cursor: rgba(0x55b4d3ff).into(),
106                selection: rgba(0x55b4d33d).into(),
107            },
108            PlayerTheme {
109                cursor: rgba(0xf98d3fff).into(),
110                selection: rgba(0xf98d3f3d).into(),
111            },
112            PlayerTheme {
113                cursor: rgba(0xa37accff).into(),
114                selection: rgba(0xa37acc3d).into(),
115            },
116            PlayerTheme {
117                cursor: rgba(0x4dbf99ff).into(),
118                selection: rgba(0x4dbf993d).into(),
119            },
120            PlayerTheme {
121                cursor: rgba(0xef7271ff).into(),
122                selection: rgba(0xef72713d).into(),
123            },
124            PlayerTheme {
125                cursor: rgba(0xf1ad49ff).into(),
126                selection: rgba(0xf1ad493d).into(),
127            },
128        ],
129    }
130}