Vera
Publisher: TTOOWAThemes in package: 1
Ice cream-like theme of pink and sky blue
Ice cream-like theme of pink and sky blue
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 |
|---|---|---|
| — | #FCFCFA | — |
| entity.name.namespace, entity.name.type.namespace | #6bddefa2 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, storage.type.ts | #6BDDEF | |
| entity.name.type.struct | #5bd78b | |
| variable.parameter.ts, variable.other.readwrite.ts, entity.name.variable.local.cs, variable.other.rust | #b4b4b4 | |
| punctuation | #b4b4b4 | |
| constant.language | #ef6b6b | |
| comment, punctuation.definition | #617374 | |
| entity.name.tag.localname.cs | #8fa5a1 | — |
| string | #FFA366 | — |
| constant.numeric, constant.language, constant.character, constant.other | #ff9cc9 | — |
| keyword, storage | #FF86BB | — |
| storage.type | #66D9EF | italic |
| variable.language.this | #adaaa2 | |
| entity.name.function | #e4d17d | |
| variable.parameter | #FD971F | italic |
| entity.name.tag | #FF86BB | |
| entity.other.attribute-name | #A6E22E | |
| support.function | #66D9EF | |
| support.constant | #66D9EF | |
| support.type, support.class | #66D9EF | italic |
| support.other.variable | — | |
| invalid | #f8f0f0 | |
| invalid.deprecated | #F8F8F0 | — |
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}!`;
}