Bela Dark
Publisher: alezknThemes in package: 1
A simple, cold dark theme for Visual Studio Code with a minimalist color palette optimized for C# development
A simple, cold dark theme for Visual Studio Code with a minimalist color palette optimized for C# development
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 | #8C93E0 | — |
| entity.name.function | #AF8AD8 | — |
| variable.parameter | #A0BAEA | — |
| entity.name.type | #A0D392 | — |
| entity.name.type.interface | #DEAA97 | — |
| entity.name.type.struct | #A0BAEA | — |
| entity.name.type.enum | #8C93E0 | — |
| meta.attribute | #D98388 | — |
| keyword.control | #8C93E0 | — |
| keyword.other.access | #D98388 | — |
| string | #DEAA97 | — |
| comment | #787891 | — |
| variable | #c7c7d1 | — |
| entity.name.type.namespace | #787891 | — |
| entity.name.type.generic | #A0BAEA | — |
| variable.other.local.type | #DEAA97 | — |
| keyword.operator | #DCC899 | — |
| support.type.property-name | #A0BAEA | — |
| constant.language.json | #D98388 | — |
| string.quoted.double.json | #C7C7D1 | — |
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}!`;
}