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 | #5a3020 | italic |
| string, string.quoted, string.template | #ffd166 | — |
| constant.character.escape | #ef476f | — |
| string.regexp | #ff8c42 | — |
| keyword, keyword.control, storage.type | #ff6b35 | — |
| storage.modifier | #ff8c42 | italic |
| keyword.operator | #ffaa80 | — |
| entity.name.function, support.function | #ef476f | — |
| support.function.builtin, support.function.magic | #ff4d6d | — |
| variable, variable.other | #f9c5b0 | — |
| variable.parameter | #f0d5c8 | italic |
| variable.language | #ff4d6d | italic |
| entity.name.type, entity.name.class, support.class, support.type | #ff8c42 | — |
| entity.name.type.interface | #06d6a0 | italic |
| constant.numeric | #06d6a0 | — |
| constant.language | #06d6a0 | italic |
| constant, constant.other | #ffb347 | — |
| entity.name.function.decorator, meta.decorator, storage.type.annotation | #ff4d6d | italic |
| entity.name.tag | #ff6b35 | — |
| entity.other.attribute-name | #ff8c42 | — |
| support.type.property-name.css | #ef476f | — |
| support.type.property-name.json | #ff8c42 | — |
| markup.heading | #ff6b35 | bold |
| markup.underline.link | #ff8c42 | underline |
| invalid | #ff4d6d | 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}!`;
}