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