AmberStudio
Publisher: HantigoZoreThemes in package: 18
A refined collection of Visual Studio Code themes crafted with care and inspired by the warmth of amber.
A refined collection of Visual Studio Code themes crafted with care and inspired by the warmth of amber.
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 | #a09890 | italic |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, variable.language | #ff4500 | bold |
| entity.name.function, meta.function-call, support.function, entity.name.method, meta.method-call | #e0c080 | — |
| entity.name.type, entity.name.class, support.class, support.type | #80aad0 | — |
| string, punctuation.definition.string, string.quoted | #8acc8a | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined, support.constant | #c088a8 | — |
| variable, variable.parameter, variable.other, variable.name | #e4ddd8 | — |
| variable.other.property, meta.property.object, support.variable.property | #6ac0c0 | — |
| punctuation, meta.brace, punctuation.definition.parameters, punctuation.definition.block, keyword.operator.assignment, keyword.operator.arithmetic | #c8c0b8 | — |
| entity.name.tag, meta.tag.sgml, punctuation.definition.tag | #ff4500 | — |
| entity.other.attribute-name | #e0c080 | italic |
| markup.heading, markup.heading entity.name | #ff4500 | bold |
| markup.bold | #e0c080 | bold |
| markup.italic | #6ac0c0 | italic |
| markup.inline.raw | #8acc8a | — |
| invalid, invalid.illegal | #ffffff | — |
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}!`;
}