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 | #2d5a4a | italic |
| string, string.quoted, string.template | #7fffd4 | — |
| constant.character.escape | #ff79c6 | — |
| string.regexp | #ffd166 | — |
| keyword, keyword.control, storage.type | #00ffa3 | — |
| storage.modifier | #00d4aa | italic |
| keyword.operator | #64dfb4 | — |
| entity.name.function, support.function | #20c997 | — |
| support.function.builtin, support.function.magic | #ff6b9d | — |
| variable, variable.other | #a8e6cf | — |
| variable.parameter | #c8ddd5 | italic |
| variable.language | #ff6b9d | italic |
| entity.name.type, entity.name.class, support.class, support.type | #00d4aa | — |
| entity.name.type.interface | #7fffd4 | italic |
| constant.numeric | #ff79c6 | — |
| constant.language | #ff79c6 | italic |
| constant, constant.other | #ffd166 | — |
| entity.name.function.decorator, meta.decorator, storage.type.annotation | #ff79c6 | italic |
| entity.name.tag | #00ffa3 | — |
| entity.other.attribute-name | #00d4aa | — |
| support.type.property-name.css | #20c997 | — |
| support.type.property-name.json | #00d4aa | — |
| markup.heading | #00ffa3 | bold |
| markup.underline.link | #00ffa3 | underline |
| invalid | #ff6b9d | strikethrough |
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}!`;
}