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(0x282a35ff).into()),
 28                    surface_background: Some(rgba(0x282a35ff).into()),
 29                    background: Some(rgba(0x282a35ff).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                    text: Some(rgba(0xf8f8f2ff).into()),
 36                    tab_inactive_background: Some(rgba(0x21222cff).into()),
 37                    tab_active_background: Some(rgba(0x282a35ff).into()),
 38                    editor_background: Some(rgba(0x282a35ff).into()),
 39                    editor_gutter_background: Some(rgba(0x282a35ff).into()),
 40                    editor_line_number: Some(rgba(0x6272a4ff).into()),
 41                    editor_active_line_number: Some(rgba(0xf8f8f2ff).into()),
 42                    terminal_background: Some(rgba(0x282a35ff).into()),
 43                    terminal_ansi_bright_black: Some(rgba(0x6272a4ff).into()),
 44                    terminal_ansi_bright_red: Some(rgba(0xff6d6dff).into()),
 45                    terminal_ansi_bright_green: Some(rgba(0x69ff94ff).into()),
 46                    terminal_ansi_bright_yellow: Some(rgba(0xffffa5ff).into()),
 47                    terminal_ansi_bright_blue: Some(rgba(0xd6abfeff).into()),
 48                    terminal_ansi_bright_magenta: Some(rgba(0xff92dfff).into()),
 49                    terminal_ansi_bright_cyan: Some(rgba(0xa3fefeff).into()),
 50                    terminal_ansi_bright_white: Some(rgba(0xffffffff).into()),
 51                    terminal_ansi_black: Some(rgba(0x21222cff).into()),
 52                    terminal_ansi_red: Some(rgba(0xff5555ff).into()),
 53                    terminal_ansi_green: Some(rgba(0x50fa7bff).into()),
 54                    terminal_ansi_yellow: Some(rgba(0xf1fa8cff).into()),
 55                    terminal_ansi_blue: Some(rgba(0xbd93f9ff).into()),
 56                    terminal_ansi_magenta: Some(rgba(0xff79c6ff).into()),
 57                    terminal_ansi_cyan: Some(rgba(0x8be9fdff).into()),
 58                    terminal_ansi_white: Some(rgba(0xf8f8f2ff).into()),
 59                    ..Default::default()
 60                },
 61                status: StatusColorsRefinement {
 62                    deleted: Some(rgba(0xff5555ff).into()),
 63                    error: Some(rgba(0xff5555ff).into()),
 64                    hidden: Some(rgba(0x6272a4ff).into()),
 65                    warning: Some(rgba(0xffb76bff).into()),
 66                    ..Default::default()
 67                },
 68                syntax: Some(UserSyntaxTheme {
 69                    highlights: vec![
 70                        (
 71                            "attribute".into(),
 72                            UserHighlightStyle {
 73                                color: Some(rgba(0x50fa7bff).into()),
 74                                font_style: Some(UserFontStyle::Italic),
 75                                ..Default::default()
 76                            },
 77                        ),
 78                        (
 79                            "comment".into(),
 80                            UserHighlightStyle {
 81                                color: Some(rgba(0x6272a4ff).into()),
 82                                ..Default::default()
 83                            },
 84                        ),
 85                        (
 86                            "emphasis".into(),
 87                            UserHighlightStyle {
 88                                color: Some(rgba(0xf1fa8cff).into()),
 89                                font_style: Some(UserFontStyle::Italic),
 90                                ..Default::default()
 91                            },
 92                        ),
 93                        (
 94                            "emphasis.strong".into(),
 95                            UserHighlightStyle {
 96                                color: Some(rgba(0xffb76bff).into()),
 97                                font_weight: Some(UserFontWeight(700.0)),
 98                                ..Default::default()
 99                            },
100                        ),
101                        (
102                            "function".into(),
103                            UserHighlightStyle {
104                                color: Some(rgba(0x50fa7bff).into()),
105                                ..Default::default()
106                            },
107                        ),
108                        (
109                            "keyword".into(),
110                            UserHighlightStyle {
111                                color: Some(rgba(0xff79c6ff).into()),
112                                ..Default::default()
113                            },
114                        ),
115                        (
116                            "link_text".into(),
117                            UserHighlightStyle {
118                                color: Some(rgba(0x8be9fdff).into()),
119                                ..Default::default()
120                            },
121                        ),
122                        (
123                            "link_uri".into(),
124                            UserHighlightStyle {
125                                color: Some(rgba(0x8be9fdff).into()),
126                                ..Default::default()
127                            },
128                        ),
129                        (
130                            "string".into(),
131                            UserHighlightStyle {
132                                color: Some(rgba(0xf1fa8cff).into()),
133                                ..Default::default()
134                            },
135                        ),
136                        (
137                            "tag".into(),
138                            UserHighlightStyle {
139                                color: Some(rgba(0xff79c6ff).into()),
140                                ..Default::default()
141                            },
142                        ),
143                        (
144                            "text.literal".into(),
145                            UserHighlightStyle {
146                                color: Some(rgba(0xf1fa8cff).into()),
147                                ..Default::default()
148                            },
149                        ),
150                        (
151                            "type".into(),
152                            UserHighlightStyle {
153                                color: Some(rgba(0x8be9fdff).into()),
154                                font_style: Some(UserFontStyle::Italic),
155                                ..Default::default()
156                            },
157                        ),
158                        (
159                            "variable".into(),
160                            UserHighlightStyle {
161                                color: Some(rgba(0xbd93f9ff).into()),
162                                font_style: Some(UserFontStyle::Italic),
163                                ..Default::default()
164                            },
165                        ),
166                        (
167                            "variable.special".into(),
168                            UserHighlightStyle {
169                                color: Some(rgba(0xbd93f9ff).into()),
170                                font_style: Some(UserFontStyle::Italic),
171                                ..Default::default()
172                            },
173                        ),
174                    ],
175                }),
176            },
177        }],
178    }
179}