Mountains and Rivers Theme
Publisher: yshwakerThemes in package: 1
An light theme inspired by the painting - A Panorama of Rivers and Mountains
An light theme inspired by the painting - A Panorama of Rivers and Mountains
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 |
|---|---|---|
| string, constant.numeric, string punctuation.section.embedded source, attribute.value, string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #304831 | — |
| keyword.operator | #4E7435 | — |
| property, meta.property-name, meta.object-literal.key, attribute.name, variable.other.property, entity.other.attribute-name, entity.name.function, support.variable.property, invalid.deprecated.entity.other.attribute-name.html | #474D78 | — |
| keyword.control | #91102A | italic |
| entity.name.tag, support.type.property-name | #4E7435 | — |
| storage, storage.type, support.type.builtin, constant.language.undefined, constant.language.null | #346D91 | — |
| support.class | #95262D | — |
| comment, punctuation.definition.comment, string.comment | #77858E | italic |
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}!`;
}