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