Tears of the Kingdom Theme
Publisher: Adrian KamulegeyaThemes in package: 2
A minimal, material-inspired VS Code dark theme based on The Legend of Zelda: Tears of the Kingdom
A minimal, material-inspired VS Code dark theme based on The Legend of Zelda: Tears of the Kingdom
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 | #8FA39B | italic |
| string, string.quoted, string.template | #3FBF9A | — |
| constant.numeric | #C2A86B | — |
| constant.language, constant.character, constant.other | #C2A86B | — |
| variable.other.constant | #C2A86B | — |
| keyword, keyword.control, keyword.operator.new, keyword.other | #C2A86B | — |
| storage, storage.type, storage.modifier | #C2A86B | — |
| keyword.operator | #4FA6A3 | — |
| entity.name.function, meta.function-call, support.function | #4FA6A3 | — |
| entity.name.class, entity.name.type.class, support.class | #6E8FA6 | — |
| entity.name.type, support.type, entity.other.inherited-class | #6E8FA6 | — |
| entity.name.tag, meta.tag.sgml | #C2A86B | — |
| entity.other.attribute-name | #4FA6A3 | — |
| variable, variable.other | #C9D6CF | — |
| variable.parameter | #6E8FA6 | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #C2A86B | — |
| support.type.property-name.json, meta.structure.dictionary.key.json | #4FA6A3 | — |
| markup.bold | #C2A86B | bold |
| markup.italic | #C2A86B | italic |
| markup.heading, entity.name.section | #6E8FA6 | bold |
| markup.underline.link | #3FBF9A | — |
| markup.inline.raw, markup.fenced_code.block | #4FA6A3 | — |
| markup.quote | #8FA39B | italic |
| invalid, invalid.illegal | #C06C5F | — |
| invalid.deprecated | #C06C5F | strikethrough |
| punctuation.definition, punctuation.separator, punctuation.terminator | #8FA39B | — |
| meta.brace, punctuation.section | #C9D6CF | — |
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}!`;
}