bocchi-boca-juniors-theme-dark
Publisher: Gonzalo SosaThemes in package: 1
Theme based on Bocchi from Bocchi the Rock! and Boca Juniors
Theme based on Bocchi from Bocchi the Rock! and Boca Juniors
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 |
|---|---|---|
| keyword | #F2A6D5 | — |
| string | #A6C8FF | — |
| constant.numeric | #FFB347 | — |
| variable | #B3A1FF | — |
| variable.parameter | #88D1F1 | — |
| constant | #FFD100 | — |
| constant.language.boolean | #9AE29B | — |
| string.regexp | #4EC9B0 | — |
| comment | #6A9955 | italic |
| function | #FFCB6B | — |
| support.function | #FFCB6B | — |
| type | #B390D4 | — |
| storage.type | #FFD700 | — |
| entity.name.type | #82AAFF | — |
| entity.name.tag | #FFD100 | — |
| support.type.property-name.css | #9AE29B | — |
| invalid | #FF5E5E | — |
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}!`;
}