asphales
Publisher: d4cThemes in package: 1
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 | #acd2ac | italic |
| variable, string constant.other.placeholder | #dcdccc | — |
| constant.language.boolean, constant.other | #ffa263 | — |
| constant.numeric | #b3dadc | — |
| constant.other.color | #ffffff | — |
| invalid, invalid.illegal | #f0616d | — |
| keyword, storage.type, storage.modifier | #ffd787 | italic |
| keyword.control, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #d6a280 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #d6a280 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #dbc7a0 | — |
| string, constant.other.symbol, constant.other.key, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #efdfd0 | — |
| entity.name.type, support.class, support.other.namespace, entity.other.inherited-class, meta.use.php, markup.changed.git_gutter | #ffa263 | — |
| markup.warning, keyword.operator.warning, storage.modifier.package, meta.directive.warning | #ffa263 | — |
| #8cd0d3 | — | |
| #9ece9e | — | |
| keyword.operator | #d6a280 | — |
| support.other.variable, string.other.link, meta.block variable.other | #dcdccc | — |
| markup.heading.markdown, markup.heading | markup.heading entity.name | #ffd787 | bold |
| markup.quote | #acd2ac | 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}!`;
}