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