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