Kolento Theme
Publisher: KolentoThemes in package: 1
Kolento Dark 暗色主题。打开自定义调色:按 Ctrl+Shift+P(macOS:Cmd+Shift+P)打开命令面板,输入「Kolento」或「打开色调自定义」,选择「Kolento Theme: 打开色调自定义」。在面板中为标题栏、活动栏、侧栏、标签栏、编辑区等选色并保存到 workbench.colorCustomizations(仅对本主题生效)。
Kolento Dark 暗色主题。打开自定义调色:按 Ctrl+Shift+P(macOS:Cmd+Shift+P)打开命令面板,输入「Kolento」或「打开色调自定义」,选择「Kolento Theme: 打开色调自定义」。在面板中为标题栏、活动栏、侧栏、标签栏、编辑区等选色并保存到 workbench.colorCustomizations(仅对本主题生效)。
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 | #6a9955 | italic |
| string, string.quoted | #ce9178 | — |
| keyword, storage.type, storage.modifier | #c586c0 | — |
| entity.name.function, support.function | #dcdcaa | — |
| entity.name.type, entity.name.class | #4ec9b0 | — |
| variable, variable.other | #9cdcfe | — |
| constant.numeric, constant.language | #b5cea8 | — |
| entity.name.tag | #569cd6 | — |
| entity.other.attribute-name | #9cdcfe | — |
| invalid | #f44747 | — |
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}!`;
}