NovaTheme - Swazlll Edition
Publisher: Nova ThemeThemes in package: 14
A collection of dark themes for VS Code: Ocean, Midnight, Neon, Aurora, Coral, Storm, Forest, Dracula, Synthwave, Matrix, Ember, Sakura, Monochrome, and Abyss.
A collection of dark themes for VS Code: Ocean, Midnight, Neon, Aurora, Coral, Storm, Forest, Dracula, Synthwave, Matrix, Ember, Sakura, Monochrome, and Abyss.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, comment.line, comment.block, comment.block.documentation | #444444 | italic |
| string, string.quoted, string.quoted.single, string.quoted.double, string.template | #bbbbbb | — |
| constant.character.escape | #ddddaa | — |
| string.regexp | #cccc88 | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.return, keyword.control.conditional, keyword.control.loop, keyword.control.import, keyword.control.from, keyword.control.export | #ffffff | bold |
| keyword.operator | #aaaaaa | — |
| storage.type, storage.type.function, storage.type.class, storage.type.let, storage.type.const, storage.type.var | #ffffff | — |
| storage.modifier, storage.modifier.async, storage.modifier.static | #cccccc | italic |
| entity.name.function, entity.name.function.member | #dddddd | — |
| meta.function-call, support.function | #dddddd | — |
| support.function.builtin, support.function.magic | #ddddaa | — |
| variable, variable.other, variable.other.readwrite | #e0e0e0 | — |
| variable.parameter | #eeeeee | italic |
| variable.language, variable.language.this | #ddddaa | italic |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum | #cccccc | — |
| constant.numeric | #dddddd | — |
| constant.language, constant.language.boolean, constant.language.null | #cccccc | — |
| meta.decorator, entity.name.function.decorator | #ddddaa | italic |
| entity.name.tag | #dddddd | — |
| entity.other.attribute-name | #bbbbbb | — |
| support.type.property-name | #bbbbbb | — |
| punctuation, punctuation.separator, punctuation.terminator | #888888 | — |
| markup.heading | #ffffff | bold |
| invalid, invalid.illegal | #ff5555 | — |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}