Silver Studio — Hermes Theme
Publisher: wukangcheng1994Themes in package: 2
Clear white and graphite dark color themes for Hermes Desktop and VS Code. 银境:清晰白色与石墨深色配色。
Clear white and graphite dark color themes for Hermes Desktop and VS Code. 银境:清晰白色与石墨深色配色。
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 | #AFB3BB | — |
| string, constant.other.symbol | #94D6AB | — |
| keyword, storage | #D9ACF3 | — |
| constant.numeric, constant.language | #E8BC82 | — |
| entity.name.function, support.function | #70B2FF | — |
| entity.name.type, support.type, support.class | #8BCDD8 | — |
| invalid | #ff8f98 | — |
| markup.heading | #70b2ff | bold |
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}!`;
}