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