Vespera Theme
Publisher: ovcharovcoderThemes in package: 8
A refined collection of dark and light themes for VS Code — inspired by minimalism, warm tones, and the contrast of day and night.
A refined collection of dark and light themes for VS Code — inspired by minimalism, warm tones, and the contrast of day and night.
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, punctuation.definition.comment | #5D6675 | |
| keyword, storage.type, storage.modifier | #7DB7D9 | bold |
| variable, meta.definition.variable | #BA9EEA | — |
| string, constant.other.symbol | #98D8B0 | — |
| number, constant.numeric | #89A8E2 | — |
| function, entity.name.function | #78AEE8 | — |
| entity.name.class, support.class, meta.class | #B4A1F0 | bold |
| support.function, support.constant | #84C9B7 | — |
| constant.language, variable.language | #BA9EEA | — |
| invalid, invalid.illegal | #C2CAD6 | — |
| markup.heading, entity.name.section | #7DB7D9 | bold |
| meta.tag, entity.name.tag | #7FC5E6 | — |
| entity.other.attribute-name | #98D8B0 | — |
| punctuation.definition.tag, punctuation.separator.key-value | #6F7B91 | — |
| constant.character.escape | #94C4E8 | — |
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}!`;
}