Nepal Theme
Publisher: Nischal NiroulaThemes in package: 2
A beautiful VS Code theme inspired by the colors and culture of Nepal
A beautiful VS Code theme inspired by the colors and culture of Nepal
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 | #6c7b95 | italic |
| string, string.quoted | #f39c12 | — |
| constant.numeric | #e67e22 | — |
| constant.language | #c1121f | — |
| constant.character, constant.other | #e74c3c | — |
| variable | #e6e6e6 | — |
| keyword | #c1121f | bold |
| storage | #2c3e50 | bold |
| storage.type | #3498db | bold |
| entity.name.class | #f39c12 | bold |
| entity.name.function | #3498db | bold |
| variable.parameter | #e67e22 | — |
| entity.name.tag | #c1121f | — |
| entity.other.attribute-name | #f39c12 | — |
| support.function | #9b59b6 | — |
| support.type, support.class | #3498db | — |
| invalid | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| meta.structure.dictionary.json string.quoted.double.json | #f39c12 | — |
| meta.structure.dictionary.key.json string.quoted.double.json | #3498db | — |
| markup.bold | #c1121f | bold |
| markup.italic | #f39c12 | italic |
| markup.heading | #c1121f | bold |
| markup.underline.link | #3498db | underline |
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}!`;
}