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 | #484f58 | italic |
| string, string.quoted, string.template | #a5d6ff | — |
| constant.character.escape | #d2a8ff | — |
| string.regexp | #ffa657 | — |
| keyword, keyword.control, storage.type | #ff7b72 | — |
| storage.modifier | #79c0ff | italic |
| keyword.operator | #ff7b72 | — |
| entity.name.function, support.function | #d2a8ff | — |
| support.function.builtin, support.function.magic | #ff7b72 | — |
| variable, variable.other | #ffa657 | — |
| variable.parameter | #c9d1d9 | italic |
| variable.language | #ff7b72 | italic |
| entity.name.type, entity.name.class, support.class, support.type | #79c0ff | — |
| entity.name.type.interface | #7ee787 | italic |
| constant.numeric | #79c0ff | — |
| constant.language | #79c0ff | italic |
| constant, constant.other | #ffa657 | — |
| entity.name.function.decorator, meta.decorator, storage.type.annotation | #d2a8ff | italic |
| entity.name.tag | #7ee787 | — |
| entity.other.attribute-name | #79c0ff | — |
| support.type.property-name.css | #79c0ff | — |
| support.type.property-name.json | #79c0ff | — |
| markup.heading | #58a6ff | bold |
| markup.underline.link | #58a6ff | underline |
| invalid | #ff7b72 | 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}!`;
}