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_foreground: Some(rgba(0xf8f8f2ff).into()),
 47                    editor_background: Some(rgba(0x282a36ff).into()),
 48                    editor_gutter_background: Some(rgba(0x282a36ff).into()),
 49                    editor_line_number: Some(rgba(0x6272a4ff).into()),
 50                    editor_active_line_number: Some(rgba(0xf8f8f2ff).into()),
 51                    editor_wrap_guide: Some(rgba(0xbd93f9ff).into()),
 52                    editor_active_wrap_guide: Some(rgba(0xbd93f9ff).into()),
 53                    terminal_background: Some(rgba(0x282a36ff).into()),
 54                    terminal_ansi_bright_black: Some(rgba(0x6272a4ff).into()),
 55                    terminal_ansi_bright_red: Some(rgba(0xff6e6eff).into()),
 56                    terminal_ansi_bright_green: Some(rgba(0x69ff94ff).into()),
 57                    terminal_ansi_bright_yellow: Some(rgba(0xffffa5ff).into()),
 58                    terminal_ansi_bright_blue: Some(rgba(0xd6acffff).into()),
 59                    terminal_ansi_bright_magenta: Some(rgba(0xff92dfff).into()),
 60                    terminal_ansi_bright_cyan: Some(rgba(0xa4ffffff).into()),
 61                    terminal_ansi_bright_white: Some(rgba(0xffffffff).into()),
 62                    terminal_ansi_black: Some(rgba(0x21222cff).into()),
 63                    terminal_ansi_red: Some(rgba(0xff5555ff).into()),
 64                    terminal_ansi_green: Some(rgba(0x50fa7bff).into()),
 65                    terminal_ansi_yellow: Some(rgba(0xf1fa8cff).into()),
 66                    terminal_ansi_blue: Some(rgba(0xbd93f9ff).into()),
 67                    terminal_ansi_magenta: Some(rgba(0xff79c6ff).into()),
 68                    terminal_ansi_cyan: Some(rgba(0x8be9fdff).into()),
 69                    terminal_ansi_white: Some(rgba(0xf8f8f2ff).into()),
 70                    ..Default::default()
 71                },
 72                status: StatusColorsRefinement {
 73                    conflict: Some(rgba(0xffb86cff).into()),
 74                    created: Some(rgba(0x50fa7b80).into()),
 75                    deleted: Some(rgba(0xff555580).into()),
 76                    error: Some(rgba(0xff5555ff).into()),
 77                    hidden: Some(rgba(0x6272a4ff).into()),
 78                    hint: Some(rgba(0x969696ff).into()),
 79                    ignored: Some(rgba(0x6272a4ff).into()),
 80                    modified: Some(rgba(0x8be9fd80).into()),
 81                    warning: Some(rgba(0xffb86cff).into()),
 82                    ..Default::default()
 83                },
 84                syntax: Some(UserSyntaxTheme {
 85                    highlights: vec![
 86                        (
 87                            "attribute".into(),
 88                            UserHighlightStyle {
 89                                color: Some(rgba(0x50fa7bff).into()),
 90                                font_style: Some(UserFontStyle::Italic),
 91                                ..Default::default()
 92                            },
 93                        ),
 94                        (
 95                            "comment".into(),
 96                            UserHighlightStyle {
 97                                color: Some(rgba(0x6272a4ff).into()),
 98                                ..Default::default()
 99                            },
100                        ),
101                        (
102                            "comment.doc".into(),
103                            UserHighlightStyle {
104                                color: Some(rgba(0x6272a4ff).into()),
105                                ..Default::default()
106                            },
107                        ),
108                        (
109                            "constant".into(),
110                            UserHighlightStyle {
111                                color: Some(rgba(0xbd93f9ff).into()),
112                                ..Default::default()
113                            },
114                        ),
115                        (
116                            "constructor".into(),
117                            UserHighlightStyle {
118                                color: Some(rgba(0xff79c6ff).into()),
119                                ..Default::default()
120                            },
121                        ),
122                        (
123                            "emphasis".into(),
124                            UserHighlightStyle {
125                                color: Some(rgba(0xf1fa8cff).into()),
126                                font_style: Some(UserFontStyle::Italic),
127                                ..Default::default()
128                            },
129                        ),
130                        (
131                            "emphasis.strong".into(),
132                            UserHighlightStyle {
133                                color: Some(rgba(0xffb86cff).into()),
134                                font_weight: Some(UserFontWeight(700.0)),
135                                ..Default::default()
136                            },
137                        ),
138                        (
139                            "function".into(),
140                            UserHighlightStyle {
141                                color: Some(rgba(0x50fa7bff).into()),
142                                ..Default::default()
143                            },
144                        ),
145                        (
146                            "keyword".into(),
147                            UserHighlightStyle {
148                                color: Some(rgba(0xff79c6ff).into()),
149                                ..Default::default()
150                            },
151                        ),
152                        (
153                            "link_text".into(),
154                            UserHighlightStyle {
155                                color: Some(rgba(0x8be9fdff).into()),
156                                ..Default::default()
157                            },
158                        ),
159                        (
160                            "link_uri".into(),
161                            UserHighlightStyle {
162                                color: Some(rgba(0x8be9fdff).into()),
163                                ..Default::default()
164                            },
165                        ),
166                        (
167                            "number".into(),
168                            UserHighlightStyle {
169                                color: Some(rgba(0xbd93f9ff).into()),
170                                ..Default::default()
171                            },
172                        ),
173                        (
174                            "string".into(),
175                            UserHighlightStyle {
176                                color: Some(rgba(0xf1fa8cff).into()),
177                                ..Default::default()
178                            },
179                        ),
180                        (
181                            "string.escape".into(),
182                            UserHighlightStyle {
183                                color: Some(rgba(0xf1fa8cff).into()),
184                                ..Default::default()
185                            },
186                        ),
187                        (
188                            "string.regex".into(),
189                            UserHighlightStyle {
190                                color: Some(rgba(0xf1fa8cff).into()),
191                                ..Default::default()
192                            },
193                        ),
194                        (
195                            "string.special".into(),
196                            UserHighlightStyle {
197                                color: Some(rgba(0xf1fa8cff).into()),
198                                ..Default::default()
199                            },
200                        ),
201                        (
202                            "string.special.symbol".into(),
203                            UserHighlightStyle {
204                                color: Some(rgba(0xf1fa8cff).into()),
205                                ..Default::default()
206                            },
207                        ),
208                        (
209                            "tag".into(),
210                            UserHighlightStyle {
211                                color: Some(rgba(0xff79c6ff).into()),
212                                ..Default::default()
213                            },
214                        ),
215                        (
216                            "text.literal".into(),
217                            UserHighlightStyle {
218                                color: Some(rgba(0xf1fa8cff).into()),
219                                ..Default::default()
220                            },
221                        ),
222                        (
223                            "type".into(),
224                            UserHighlightStyle {
225                                color: Some(rgba(0x8be9fdff).into()),
226                                font_style: Some(UserFontStyle::Italic),
227                                ..Default::default()
228                            },
229                        ),
230                        (
231                            "variable".into(),
232                            UserHighlightStyle {
233                                color: Some(rgba(0xf8f8f2ff).into()),
234                                ..Default::default()
235                            },
236                        ),
237                        (
238                            "variable.special".into(),
239                            UserHighlightStyle {
240                                color: Some(rgba(0xbd93f9ff).into()),
241                                font_style: Some(UserFontStyle::Italic),
242                                ..Default::default()
243                            },
244                        ),
245                    ],
246                }),
247            },
248        }],
249    }
250}