Mountains and Rivers Theme
Publisher: yshwakerThemes in package: 2
Light and dark VS Code themes inspired by the painting A Thousand Li of Rivers and Mountains
Light and dark VS Code themes inspired by the painting A Thousand Li 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 |
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 | #93B878 | — |
| keyword.operator | #7FA36C | — |
| 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 | #A8B2D8 | — |
| keyword.control | #D7836F | italic |
| entity.name.tag, support.type.property-name | #7FA36C | — |
| storage, storage.type, support.type.builtin, constant.language.undefined, constant.language.null | #8AB9D6 | — |
| support.class | #D7836F | — |
| comment, punctuation.definition.comment, string.comment | #7F898F | 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}!`;
}
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}!`;
}