nord.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 nord() -> UserThemeFamily {
 13    UserThemeFamily {
 14        name: "Nord".into(),
 15        author: "Sven Greb (svengreb)".into(),
 16        themes: vec![UserTheme {
 17            name: "Nord".into(),
 18            appearance: Appearance::Dark,
 19            styles: UserThemeStylesRefinement {
 20                colors: ThemeColorsRefinement {
 21                    border: Some(rgba(0x3b4252ff).into()),
 22                    border_variant: Some(rgba(0x3b4252ff).into()),
 23                    border_focused: Some(rgba(0x3b4252ff).into()),
 24                    border_selected: Some(rgba(0x3b4252ff).into()),
 25                    border_transparent: Some(rgba(0x3b4252ff).into()),
 26                    border_disabled: Some(rgba(0x3b4252ff).into()),
 27                    elevated_surface_background: Some(rgba(0x3b4252ff).into()),
 28                    surface_background: Some(rgba(0x2e3440ff).into()),
 29                    background: Some(rgba(0x2e3440ff).into()),
 30                    element_background: Some(rgba(0x88c0d0ee).into()),
 31                    element_hover: Some(rgba(0x3b4252ff).into()),
 32                    element_selected: Some(rgba(0x88c0d0ff).into()),
 33                    drop_target_background: Some(rgba(0x88c0d099).into()),
 34                    ghost_element_hover: Some(rgba(0x3b4252ff).into()),
 35                    ghost_element_selected: Some(rgba(0x88c0d0ff).into()),
 36                    text: Some(rgba(0xd8dee9ff).into()),
 37                    text_muted: Some(rgba(0xd8dee966).into()),
 38                    status_bar_background: Some(rgba(0x3b4252ff).into()),
 39                    title_bar_background: Some(rgba(0x2e3440ff).into()),
 40                    toolbar_background: Some(rgba(0x2e3440ff).into()),
 41                    tab_bar_background: Some(rgba(0x2e3440ff).into()),
 42                    tab_inactive_background: Some(rgba(0x2e3440ff).into()),
 43                    tab_active_background: Some(rgba(0x3b4252ff).into()),
 44                    scrollbar_thumb_background: Some(rgba(0x434c5e99).into()),
 45                    scrollbar_thumb_hover_background: Some(rgba(0x434c5eaa).into()),
 46                    scrollbar_thumb_border: Some(rgba(0x434c5e99).into()),
 47                    scrollbar_track_background: Some(rgba(0x2e3440ff).into()),
 48                    scrollbar_track_border: Some(rgba(0x3b4252ff).into()),
 49                    editor_foreground: Some(rgba(0xd8dee9ff).into()),
 50                    editor_background: Some(rgba(0x2e3440ff).into()),
 51                    editor_gutter_background: Some(rgba(0x2e3440ff).into()),
 52                    editor_line_number: Some(rgba(0x4c566aff).into()),
 53                    editor_active_line_number: Some(rgba(0xd8dee9ff).into()),
 54                    editor_wrap_guide: Some(rgba(0x3b4252ff).into()),
 55                    editor_active_wrap_guide: Some(rgba(0x3b4252ff).into()),
 56                    terminal_background: Some(rgba(0x2e3440ff).into()),
 57                    terminal_ansi_bright_black: Some(rgba(0x4c566aff).into()),
 58                    terminal_ansi_bright_red: Some(rgba(0xbf616aff).into()),
 59                    terminal_ansi_bright_green: Some(rgba(0xa3be8cff).into()),
 60                    terminal_ansi_bright_yellow: Some(rgba(0xebcb8bff).into()),
 61                    terminal_ansi_bright_blue: Some(rgba(0x81a1c1ff).into()),
 62                    terminal_ansi_bright_magenta: Some(rgba(0xb48eadff).into()),
 63                    terminal_ansi_bright_cyan: Some(rgba(0x8fbcbbff).into()),
 64                    terminal_ansi_bright_white: Some(rgba(0xeceff4ff).into()),
 65                    terminal_ansi_black: Some(rgba(0x3b4252ff).into()),
 66                    terminal_ansi_red: Some(rgba(0xbf616aff).into()),
 67                    terminal_ansi_green: Some(rgba(0xa3be8cff).into()),
 68                    terminal_ansi_yellow: Some(rgba(0xebcb8bff).into()),
 69                    terminal_ansi_blue: Some(rgba(0x81a1c1ff).into()),
 70                    terminal_ansi_magenta: Some(rgba(0xb48eadff).into()),
 71                    terminal_ansi_cyan: Some(rgba(0x88c0d0ff).into()),
 72                    terminal_ansi_white: Some(rgba(0xe5e9f0ff).into()),
 73                    ..Default::default()
 74                },
 75                status: StatusColorsRefinement {
 76                    conflict: Some(rgba(0x5e81acff).into()),
 77                    created: Some(rgba(0xa3be8cff).into()),
 78                    deleted: Some(rgba(0xbf616aff).into()),
 79                    error: Some(rgba(0xbf616aff).into()),
 80                    hidden: Some(rgba(0xd8dee966).into()),
 81                    hint: Some(rgba(0xd8dee9ff).into()),
 82                    ignored: Some(rgba(0xd8dee966).into()),
 83                    modified: Some(rgba(0xebcb8bff).into()),
 84                    warning: Some(rgba(0xebcb8bff).into()),
 85                    ..Default::default()
 86                },
 87                syntax: Some(UserSyntaxTheme {
 88                    highlights: vec![
 89                        (
 90                            "attribute".into(),
 91                            UserHighlightStyle {
 92                                color: Some(rgba(0x8fbcbbff).into()),
 93                                ..Default::default()
 94                            },
 95                        ),
 96                        (
 97                            "boolean".into(),
 98                            UserHighlightStyle {
 99                                color: Some(rgba(0x81a1c1ff).into()),
100                                ..Default::default()
101                            },
102                        ),
103                        (
104                            "comment".into(),
105                            UserHighlightStyle {
106                                color: Some(rgba(0x616e88ff).into()),
107                                ..Default::default()
108                            },
109                        ),
110                        (
111                            "comment.doc".into(),
112                            UserHighlightStyle {
113                                color: Some(rgba(0x616e88ff).into()),
114                                ..Default::default()
115                            },
116                        ),
117                        (
118                            "constant".into(),
119                            UserHighlightStyle {
120                                color: Some(rgba(0x81a1c1ff).into()),
121                                ..Default::default()
122                            },
123                        ),
124                        (
125                            "constructor".into(),
126                            UserHighlightStyle {
127                                color: Some(rgba(0x81a1c1ff).into()),
128                                ..Default::default()
129                            },
130                        ),
131                        (
132                            "function".into(),
133                            UserHighlightStyle {
134                                color: Some(rgba(0x88c0d0ff).into()),
135                                ..Default::default()
136                            },
137                        ),
138                        (
139                            "keyword".into(),
140                            UserHighlightStyle {
141                                color: Some(rgba(0x81a1c1ff).into()),
142                                ..Default::default()
143                            },
144                        ),
145                        (
146                            "number".into(),
147                            UserHighlightStyle {
148                                color: Some(rgba(0xb48eadff).into()),
149                                ..Default::default()
150                            },
151                        ),
152                        (
153                            "operator".into(),
154                            UserHighlightStyle {
155                                color: Some(rgba(0x81a1c1ff).into()),
156                                ..Default::default()
157                            },
158                        ),
159                        (
160                            "preproc".into(),
161                            UserHighlightStyle {
162                                color: Some(rgba(0x5e81acff).into()),
163                                ..Default::default()
164                            },
165                        ),
166                        (
167                            "punctuation".into(),
168                            UserHighlightStyle {
169                                color: Some(rgba(0xeceff4ff).into()),
170                                ..Default::default()
171                            },
172                        ),
173                        (
174                            "punctuation.bracket".into(),
175                            UserHighlightStyle {
176                                color: Some(rgba(0xeceff4ff).into()),
177                                ..Default::default()
178                            },
179                        ),
180                        (
181                            "punctuation.delimiter".into(),
182                            UserHighlightStyle {
183                                color: Some(rgba(0x81a1c1ff).into()),
184                                ..Default::default()
185                            },
186                        ),
187                        (
188                            "punctuation.list_marker".into(),
189                            UserHighlightStyle {
190                                color: Some(rgba(0xeceff4ff).into()),
191                                ..Default::default()
192                            },
193                        ),
194                        (
195                            "punctuation.special".into(),
196                            UserHighlightStyle {
197                                color: Some(rgba(0xeceff4ff).into()),
198                                ..Default::default()
199                            },
200                        ),
201                        (
202                            "string".into(),
203                            UserHighlightStyle {
204                                color: Some(rgba(0xa3be8cff).into()),
205                                ..Default::default()
206                            },
207                        ),
208                        (
209                            "string.escape".into(),
210                            UserHighlightStyle {
211                                color: Some(rgba(0xebcb8bff).into()),
212                                ..Default::default()
213                            },
214                        ),
215                        (
216                            "string.regex".into(),
217                            UserHighlightStyle {
218                                color: Some(rgba(0xa3be8cff).into()),
219                                ..Default::default()
220                            },
221                        ),
222                        (
223                            "string.special".into(),
224                            UserHighlightStyle {
225                                color: Some(rgba(0xa3be8cff).into()),
226                                ..Default::default()
227                            },
228                        ),
229                        (
230                            "string.special.symbol".into(),
231                            UserHighlightStyle {
232                                color: Some(rgba(0xa3be8cff).into()),
233                                ..Default::default()
234                            },
235                        ),
236                        (
237                            "tag".into(),
238                            UserHighlightStyle {
239                                color: Some(rgba(0x81a1c1ff).into()),
240                                ..Default::default()
241                            },
242                        ),
243                        (
244                            "text.literal".into(),
245                            UserHighlightStyle {
246                                color: Some(rgba(0xa3be8cff).into()),
247                                ..Default::default()
248                            },
249                        ),
250                        (
251                            "type".into(),
252                            UserHighlightStyle {
253                                color: Some(rgba(0x8fbcbbff).into()),
254                                ..Default::default()
255                            },
256                        ),
257                        (
258                            "variable".into(),
259                            UserHighlightStyle {
260                                color: Some(rgba(0x81a1c1ff).into()),
261                                ..Default::default()
262                            },
263                        ),
264                        (
265                            "variable.special".into(),
266                            UserHighlightStyle {
267                                color: Some(rgba(0x81a1c1ff).into()),
268                                ..Default::default()
269                            },
270                        ),
271                    ],
272                }),
273            },
274        }],
275    }
276}