dracula.rs

  1// This file was generated by the `theme_importer`.
  2// Be careful when modifying it by hand.
  3
  4use gpui::rgba;
  5
  6#[allow(unused)]
  7use crate::{
  8    Appearance, StatusColorsRefinement, ThemeColorsRefinement, UserFontStyle, UserFontWeight,
  9    UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily, UserThemeStylesRefinement,
 10};
 11
 12pub fn dracula() -> UserThemeFamily {
 13    UserThemeFamily {
 14        name: "Dracula".into(),
 15        author: "Zeno Rocha".into(),
 16        themes: vec![UserTheme {
 17            name: "Dracula".into(),
 18            appearance: Appearance::Dark,
 19            styles: UserThemeStylesRefinement {
 20                colors: ThemeColorsRefinement {
 21                    border: Some(rgba(0xbd93f9ff).into()),
 22                    border_variant: Some(rgba(0xbd93f9ff).into()),
 23                    border_focused: Some(rgba(0x6272a4ff).into()),
 24                    border_selected: Some(rgba(0xbd93f9ff).into()),
 25                    border_transparent: Some(rgba(0xbd93f9ff).into()),
 26                    border_disabled: Some(rgba(0xbd93f9ff).into()),
 27                    elevated_surface_background: Some(rgba(0x343746ff).into()),
 28                    surface_background: Some(rgba(0x282a36ff).into()),
 29                    background: Some(rgba(0x282a36ff).into()),
 30                    element_background: Some(rgba(0x44475aff).into()),
 31                    element_hover: Some(rgba(0x44475a75).into()),
 32                    element_selected: Some(rgba(0x44475aff).into()),
 33                    drop_target_background: Some(rgba(0x44475aff).into()),
 34                    ghost_element_hover: Some(rgba(0x44475a75).into()),
 35                    ghost_element_selected: Some(rgba(0x44475aff).into()),
 36                    text: Some(rgba(0xf8f8f2ff).into()),
 37                    text_muted: Some(rgba(0x6272a4ff).into()),
 38                    status_bar_background: Some(rgba(0x191a21ff).into()),
 39                    title_bar_background: Some(rgba(0x21222cff).into()),
 40                    toolbar_background: Some(rgba(0x282a36ff).into()),
 41                    tab_bar_background: Some(rgba(0x191a21ff).into()),
 42                    tab_inactive_background: Some(rgba(0x21222cff).into()),
 43                    tab_active_background: Some(rgba(0x282a36ff).into()),
 44                    scrollbar_track_background: Some(rgba(0x282a36ff).into()),
 45                    scrollbar_track_border: Some(rgba(0x191a21ff).into()),
 46                    editor_background: Some(rgba(0x282a36ff).into()),
 47                    editor_gutter_background: Some(rgba(0x282a36ff).into()),
 48                    editor_line_number: Some(rgba(0x6272a4ff).into()),
 49                    editor_active_line_number: Some(rgba(0xf8f8f2ff).into()),
 50                    terminal_background: Some(rgba(0x282a36ff).into()),
 51                    terminal_ansi_bright_black: Some(rgba(0x6272a4ff).into()),
 52                    terminal_ansi_bright_red: Some(rgba(0xff6e6eff).into()),
 53                    terminal_ansi_bright_green: Some(rgba(0x69ff94ff).into()),
 54                    terminal_ansi_bright_yellow: Some(rgba(0xffffa5ff).into()),
 55                    terminal_ansi_bright_blue: Some(rgba(0xd6acffff).into()),
 56                    terminal_ansi_bright_magenta: Some(rgba(0xff92dfff).into()),
 57                    terminal_ansi_bright_cyan: Some(rgba(0xa4ffffff).into()),
 58                    terminal_ansi_bright_white: Some(rgba(0xffffffff).into()),
 59                    terminal_ansi_black: Some(rgba(0x21222cff).into()),
 60                    terminal_ansi_red: Some(rgba(0xff5555ff).into()),
 61                    terminal_ansi_green: Some(rgba(0x50fa7bff).into()),
 62                    terminal_ansi_yellow: Some(rgba(0xf1fa8cff).into()),
 63                    terminal_ansi_blue: Some(rgba(0xbd93f9ff).into()),
 64                    terminal_ansi_magenta: Some(rgba(0xff79c6ff).into()),
 65                    terminal_ansi_cyan: Some(rgba(0x8be9fdff).into()),
 66                    terminal_ansi_white: Some(rgba(0xf8f8f2ff).into()),
 67                    ..Default::default()
 68                },
 69                status: StatusColorsRefinement {
 70                    conflict: Some(rgba(0xffb86cff).into()),
 71                    created: Some(rgba(0x50fa7b80).into()),
 72                    deleted: Some(rgba(0xff555580).into()),
 73                    error: Some(rgba(0xff5555ff).into()),
 74                    hidden: Some(rgba(0x6272a4ff).into()),
 75                    hint: Some(rgba(0x969696ff).into()),
 76                    ignored: Some(rgba(0x6272a4ff).into()),
 77                    modified: Some(rgba(0x8be9fd80).into()),
 78                    warning: Some(rgba(0xffb86cff).into()),
 79                    ..Default::default()
 80                },
 81                syntax: Some(UserSyntaxTheme {
 82                    highlights: vec![
 83                        (
 84                            "attribute".into(),
 85                            UserHighlightStyle {
 86                                color: Some(rgba(0x50fa7bff).into()),
 87                                font_style: Some(UserFontStyle::Italic),
 88                                ..Default::default()
 89                            },
 90                        ),
 91                        (
 92                            "comment".into(),
 93                            UserHighlightStyle {
 94                                color: Some(rgba(0x6272a4ff).into()),
 95                                ..Default::default()
 96                            },
 97                        ),
 98                        (
 99                            "comment.doc".into(),
100                            UserHighlightStyle {
101                                color: Some(rgba(0x6272a4ff).into()),
102                                ..Default::default()
103                            },
104                        ),
105                        (
106                            "constant".into(),
107                            UserHighlightStyle {
108                                color: Some(rgba(0xbd93f9ff).into()),
109                                ..Default::default()
110                            },
111                        ),
112                        (
113                            "constructor".into(),
114                            UserHighlightStyle {
115                                color: Some(rgba(0xff79c6ff).into()),
116                                ..Default::default()
117                            },
118                        ),
119                        (
120                            "emphasis".into(),
121                            UserHighlightStyle {
122                                color: Some(rgba(0xf1fa8cff).into()),
123                                font_style: Some(UserFontStyle::Italic),
124                                ..Default::default()
125                            },
126                        ),
127                        (
128                            "emphasis.strong".into(),
129                            UserHighlightStyle {
130                                color: Some(rgba(0xffb86cff).into()),
131                                font_weight: Some(UserFontWeight(700.0)),
132                                ..Default::default()
133                            },
134                        ),
135                        (
136                            "function".into(),
137                            UserHighlightStyle {
138                                color: Some(rgba(0x50fa7bff).into()),
139                                ..Default::default()
140                            },
141                        ),
142                        (
143                            "keyword".into(),
144                            UserHighlightStyle {
145                                color: Some(rgba(0xff79c6ff).into()),
146                                ..Default::default()
147                            },
148                        ),
149                        (
150                            "link_text".into(),
151                            UserHighlightStyle {
152                                color: Some(rgba(0x8be9fdff).into()),
153                                ..Default::default()
154                            },
155                        ),
156                        (
157                            "link_uri".into(),
158                            UserHighlightStyle {
159                                color: Some(rgba(0x8be9fdff).into()),
160                                ..Default::default()
161                            },
162                        ),
163                        (
164                            "number".into(),
165                            UserHighlightStyle {
166                                color: Some(rgba(0xbd93f9ff).into()),
167                                ..Default::default()
168                            },
169                        ),
170                        (
171                            "string".into(),
172                            UserHighlightStyle {
173                                color: Some(rgba(0xf1fa8cff).into()),
174                                ..Default::default()
175                            },
176                        ),
177                        (
178                            "string.escape".into(),
179                            UserHighlightStyle {
180                                color: Some(rgba(0xf1fa8cff).into()),
181                                ..Default::default()
182                            },
183                        ),
184                        (
185                            "string.regex".into(),
186                            UserHighlightStyle {
187                                color: Some(rgba(0xf1fa8cff).into()),
188                                ..Default::default()
189                            },
190                        ),
191                        (
192                            "string.special".into(),
193                            UserHighlightStyle {
194                                color: Some(rgba(0xf1fa8cff).into()),
195                                ..Default::default()
196                            },
197                        ),
198                        (
199                            "string.special.symbol".into(),
200                            UserHighlightStyle {
201                                color: Some(rgba(0xf1fa8cff).into()),
202                                ..Default::default()
203                            },
204                        ),
205                        (
206                            "tag".into(),
207                            UserHighlightStyle {
208                                color: Some(rgba(0xff79c6ff).into()),
209                                ..Default::default()
210                            },
211                        ),
212                        (
213                            "text.literal".into(),
214                            UserHighlightStyle {
215                                color: Some(rgba(0xf1fa8cff).into()),
216                                ..Default::default()
217                            },
218                        ),
219                        (
220                            "type".into(),
221                            UserHighlightStyle {
222                                color: Some(rgba(0x8be9fdff).into()),
223                                font_style: Some(UserFontStyle::Italic),
224                                ..Default::default()
225                            },
226                        ),
227                        (
228                            "variable".into(),
229                            UserHighlightStyle {
230                                color: Some(rgba(0xf8f8f2ff).into()),
231                                ..Default::default()
232                            },
233                        ),
234                        (
235                            "variable.special".into(),
236                            UserHighlightStyle {
237                                color: Some(rgba(0xbd93f9ff).into()),
238                                font_style: Some(UserFontStyle::Italic),
239                                ..Default::default()
240                            },
241                        ),
242                    ],
243                }),
244            },
245        }],
246    }
247}