Haramosh theme
Publisher: hcortaThemes in package: 1
Dark theme created by @hcorta 🚀
Dark theme created by @hcorta 🚀
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 |
|---|---|---|
| variable | #BFB9B3 | — |
| meta.object-literal.key | #8E8A86 | italic |
| punctuation, meta.brace | #DDD7CE | |
| keyword.operator, storage.type.function.arrow, punctuation.terminator.statement, punctuation.separator, punctuation.comma, punctuation.other.comma, punctuation.semi, punctuation.definition.typeparameters, punctuation.brackets.angle, punctuation.accessor, punctuation.other.period, punctuation.section.angle-brackets, punctuation.vararg-ellipses | #7D9599 | bold |
| storage, keyword.operator.new, keyword.operator.expression, keyword.control, keyword.local, keyword.other, keyword.function, keyword.package, keyword.struct, keyword.var, storage.type.interface, storage.type.class, storage.type.function, storage.type.rust, storage.type.type, storage.type.template, storage.type.namespace.definition, meta.var.expr storage.type, punctuation.definition.directive | #DB9C69 | |
| storage.type, keyword.type, entity.name.type, entity.name.module, entity.other.inherited-class | #9AEACC | |
| support.type.primitive, entity.name.type.primitive, entity.name.type.lifetime, entity.name.type.numeric, storage.type.boolean, keyword.type | #EF924F | — |
| constant.language, variable.other.enummember | #BCE0D2 | — |
| variable.language, keyword.other.this | #EF924F | italic |
| comment | #7A8A8C | italic |
| punctuation.definition.comment | #7A8A8C | |
| entity.name.function, support.function | #E0C398 | — |
| string.quoted, string.template, string.other.link.title | #E8BA3C | — |
| punctuation.definition.string, string.quoted.byte.raw, punctuation.definition.char | #FFE542 | — |
| constant.numeric | #C6E288 | — |
| meta.delimiter.decimal.period | #88CC2A | — |
| entity.name.tag | #57A7AF | — |
| entity.other.attribute-name | #8E8A86 | — |
| support.class.component | #8FD8E0 | — |
| heading, markup.heading | #E8BA3C | bold |
| punctuation.definition.heading | #FFE542 | bold |
| meta.link.inline | #DDD7CE | — |
| markup.underline.link | #EF924F | underline |
| markup.fenced_code, markup.inline.raw.string | #8FD8E0 | — |
| markup.fenced_code punctuation.definition, markup.inline.raw.string punctuation.definition | #57A7AF | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.quote | #8E8A86 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}